|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An extension of Enumeration
that allows rewinding to the first
component and retrieval of the number of items in the collection. This
interface can be useful in situations where an immutable collection of
(possibly mutable) objects must be passed between objects, and where the
sequential access provided by Enumeration
is not sufficiently
flexible.
Method Summary | |
int |
getSize()
Get the length of the sequence. |
void |
rewind()
Rewind the sequence back to the first item. |
Methods inherited from interface java.util.Enumeration |
hasMoreElements, nextElement |
Method Detail |
public void rewind()
public int getSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |