Class EmptyOrderedIterator<E>
java.lang.Object
org.apache.commons.collections4.iterators.EmptyOrderedIterator<E>
- Type Parameters:
E- the type to iterate.
- All Implemented Interfaces:
Iterator<E>,OrderedIterator<E>,ResettableIterator<E>
public class EmptyOrderedIterator<E>
extends Object
implements OrderedIterator<E>, ResettableIterator<E>
Provides an implementation of an empty ordered iterator.
- Since:
- 3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OrderedIteratorSingleton instance of the iterator. -
Constructor Summary
Constructors -
Method Summary
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, removeMethods inherited from interface org.apache.commons.collections4.OrderedIterator
hasPrevious, previousMethods inherited from interface org.apache.commons.collections4.ResettableIterator
reset
-
Field Details
-
INSTANCE
Singleton instance of the iterator.- Since:
- 3.1
-
-
Constructor Details
-
EmptyOrderedIterator
protected EmptyOrderedIterator()Constructor.
-
-
Method Details
-
emptyOrderedIterator
Typed instance of the iterator.- Type Parameters:
E- the element type- Returns:
- OrderedIterator<E>
-
hasNext
public boolean hasNext() -
next
-
hasPrevious
public boolean hasPrevious() -
previous
-
nextIndex
public int nextIndex() -
previousIndex
public int previousIndex() -
add
-
set
-
remove
public void remove() -
reset
public void reset()
-