|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jqurantree.core.collections.ImmutableIteratorBase<T> org.jqurantree.core.collections.ArrayIterator<T>
T
- the type of array element supported by this iteratorpublic class ArrayIterator<T>
Supports iterating over an array without modifying the underlying values.
Constructor Summary | |
---|---|
ArrayIterator(T[] items)
|
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.util.Iterator<T> |
iterator()
Returns the iterator. |
T |
next()
Returns the next element in the iteration. |
Methods inherited from class org.jqurantree.core.collections.ImmutableIteratorBase |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayIterator(T[] items)
Method Detail |
---|
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
iterator
instance.public boolean hasNext()
ImmutableIteratorBase
true
if the iteration has more elements.
hasNext
in interface java.util.Iterator<T>
hasNext
in class ImmutableIteratorBase<T>
true
if the iterator has more elements.public T next()
ImmutableIteratorBase
next
in interface java.util.Iterator<T>
next
in class ImmutableIteratorBase<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |