Class EmptyOrderedIterator<E>
- java.lang.Object
-
- org.apache.commons.collections4.iterators.AbstractEmptyIterator<E>
-
- org.apache.commons.collections4.iterators.EmptyOrderedIterator<E>
-
- Type Parameters:
E
- the type to iterate.
- All Implemented Interfaces:
java.util.Iterator<E>
,OrderedIterator<E>
,ResettableIterator<E>
public class EmptyOrderedIterator<E> extends AbstractEmptyIterator<E> implements OrderedIterator<E>, ResettableIterator<E>
Provides an implementation of an empty ordered iterator.- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description static OrderedIterator
INSTANCE
Singleton instance of the iterator.
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmptyOrderedIterator()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> OrderedIterator<E>
emptyOrderedIterator()
Typed instance of the iterator.-
Methods inherited from class org.apache.commons.collections4.iterators.AbstractEmptyIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, reset, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.collections4.OrderedIterator
hasPrevious, previous
-
Methods inherited from interface org.apache.commons.collections4.ResettableIterator
reset
-
-
-
-
Field Detail
-
INSTANCE
public static final OrderedIterator INSTANCE
Singleton instance of the iterator.- Since:
- 3.1
-
-
Method Detail
-
emptyOrderedIterator
public static <E> OrderedIterator<E> emptyOrderedIterator()
Typed instance of the iterator.- Type Parameters:
E
- the element type- Returns:
- OrderedIterator<E>
-
-