1 |
/* RandomAccess.java -- A tagging interface that lists can use to tailor |
/* RandomAccess.java -- A tagging interface that lists can use to tailor |
2 |
operations to the correct algorithm |
operations to the correct algorithm |
3 |
Copyright (C) 2001 Free Software Foundation, Inc. |
Copyright (C) 2001, 2005 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
53 |
* <br>runs faster than this loop:<br> |
* <br>runs faster than this loop:<br> |
54 |
* <code>for (Iterator i = list.iterator(); i.hasNext(); ) i.next();</code> |
* <code>for (Iterator i = list.iterator(); i.hasNext(); ) i.next();</code> |
55 |
* |
* |
56 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake (ebb9@email.byu.edu) |
57 |
* @see List |
* @see List |
58 |
* @since 1.4 |
* @since 1.4 |
59 |
* @status updated to 1.4 |
* @status updated to 1.4 |