Class EmptyIterator<T>
java.lang.Object
org.javimmutable.collections.iterators.EmptyIterator<T>
- All Implemented Interfaces:
Iterator<T>,SplitableIterator<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()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, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods 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:SplitableIteratorUtility 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:
spliteratorin interfaceSplitableIterator<T>
-