Class EmptyIterator<T>
java.lang.Object
org.javimmutable.collections.iterators.EmptyIterator<T>
- All Implemented Interfaces:
Iterator<T>
,SplitableIterator<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
static <T> SplitableIterator
<T> of()
spliterator
(int characteristics) Utility method that creates a Spliterator with the specified characteristics that encounters all of the same elements as this Iterator.static <T> IStreamable
<T> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
Methods inherited from interface org.javimmutable.collections.SplitableIterator
isSplitAllowed, splitIterator
-
Constructor Details
-
EmptyIterator
public EmptyIterator()
-
-
Method Details
-
of
-
streamable
-
hasNext
public boolean hasNext() -
next
-
spliterator
Description copied from interface:SplitableIterator
Utility method that creates a Spliterator with the specified characteristics that encounters all of the same elements as this Iterator. Implementations are allowed to link the Spliterator to use this Iterator directly.- Specified by:
spliterator
in interfaceSplitableIterator<T>
-