Package org.openl.domain
Class IntArrayIterator
java.lang.Object
org.openl.util.AOpenIterator<Integer>
org.openl.domain.AIntIterator
org.openl.domain.IntArrayIterator
- All Implemented Interfaces:
Iterator<Integer>,IIntIterator,IOpenIterator<Integer>
- Author:
- snshor
-
Field Summary
Fields inherited from class org.openl.util.AOpenIterator
EMPTY_ITERATORFields inherited from interface org.openl.util.IOpenIterator
UNKNOWN_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openl.domain.AIntIterator
selectMethods inherited from class org.openl.util.AOpenIterator
empty, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
IntArrayIterator
public IntArrayIterator(int[] ary)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
- Specified by:
nextin interfaceIterator<Integer>- Overrides:
nextin classAIntIterator
-
nextInt
public int nextInt() -
size
public int size()Description copied from class:AOpenIteratorCalculates the remaining size of iterated collection without destroying itself(const in c++ terminology), -1 if it cannot be known in advance. Not every iterator is capable of doing it.- Specified by:
sizein interfaceIOpenIterator<Integer>- Overrides:
sizein classAOpenIterator<Integer>- Returns:
- the number of elements left to iterate, or UNKNOWN_SIZE if it is not known, this method is "const"
-
isResetable
public boolean isResetable()- Returns:
- true if iterator can be reset for repeated use
- See Also:
-
reset
public void reset()Description copied from interface:IIntIteratorresets iterator to it's initial state- See Also:
-