Class EmptyIterator<T>
java.lang.Object
com.saperion.common.lang.iterator.EmptyIterator<T>
- Type Parameters:
T- formal type of objects to iterate
- All Implemented Interfaces:
Iterator<T>
An empty Iterator that iterates through no elements.
Use getInstance() to get an instance.
This instance can be used in several threads concurrently.
- Author:
- agz
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> EmptyIterator<T>Returns an instance ofEmptyIterator.booleanhasNext()next()voidremove()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
getInstance
Returns an instance ofEmptyIterator.- Type Parameters:
T- formal type of objects to iterate- Returns:
- an instance of
EmptyIterator
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
toString
-