Class EmptyIterator<T>
java.lang.Object
org.eclipse.collections.impl.EmptyIterator<T>
- All Implemented Interfaces:
Iterator<T>, ListIterator<T>
A Singleton iterator which is empty and can be used by all empty collections.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic <T> EmptyIterator<T> booleanhasNext()booleannext()intprevious()intvoidremove()voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EmptyIterator
private EmptyIterator()
-
-
Method Details
-
getInstance
-
hasNext
-
next
-
remove
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
set
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-