|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.util.IteratorEnumeration<E>
E
- The type of the enumerated elements.public class IteratorEnumeration<E>
Copied and modified from Apache Commons Collections 3.2.1.
Adapter to make an Iterator
instance appear to be an
Enumeration
instance.
Constructor Summary | |
---|---|
IteratorEnumeration(Iterator<E> iterator)
Constructs a new IteratorEnumeration that will use the given
iterator. |
Method Summary | |
---|---|
boolean |
hasMoreElements()
Returns true if the underlying iterator has more elements. |
E |
nextElement()
Returns the next element from the underlying iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IteratorEnumeration(Iterator<E> iterator)
IteratorEnumeration
that will use the given
iterator.
iterator
- the iterator to useMethod Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<E>
public E nextElement()
nextElement
in interface Enumeration<E>
NoSuchElementException
- if the underlying iterator has
no more elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |