|
Android 2.3 Gingerbread | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Enumeration<E>
A legacy iteration interface.
New code should use Iterator instead. Iterator replaces the
enumeration interface and adds a way to remove elements from a collection.
If you have an Enumeration and want a Collection, you
can use Collections.list(java.util.Enumeration to get a List.
If you need an Enumeration for a legacy API and have a
Collection, you can use Collections.enumeration(java.util.Collection.
Iterator| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Returns whether this Enumeration has more elements. |
E |
nextElement()
Returns the next element in this Enumeration. |
| Method Detail |
|---|
boolean hasMoreElements()
Enumeration has more elements.
true if there are more elements, false otherwise.nextElement()E nextElement()
Enumeration.
NoSuchElementException - if there are no more elements.hasMoreElements()
|
Android 2.3 Gingerbread | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||