Package org.openl.util
Class AOpenIterator<T>
java.lang.Object
org.openl.util.AOpenIterator<T>
- All Implemented Interfaces:
Iterator<T>,IOpenIterator<T>
- Direct Known Subclasses:
AIndexedIterator,AIntIterator
- Author:
- snshor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.openl.util.AOpenIterator.EmptyIterator<?> Fields inherited from interface org.openl.util.IOpenIterator
UNKNOWN_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IOpenIterator<T> empty()voidremove()intsize()Calculates the remaining size of iterated collection without destroying itself(const in c++ terminology), -1 if it cannot be known in advance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Field Details
-
EMPTY_ITERATOR
public static final org.openl.util.AOpenIterator.EmptyIterator<?> EMPTY_ITERATOR
-
-
Constructor Details
-
AOpenIterator
public AOpenIterator()
-
-
Method Details
-
empty
-
remove
public void remove() -
size
public int size()Calculates 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<T>- Returns:
- the number of elements left to iterate, or UNKNOWN_SIZE if it is not known, this method is "const"
-