Class TransformIterator<S,T> 
java.lang.Object
org.javimmutable.collections.iterators.AbstractSplitableIterator<T>
org.javimmutable.collections.iterators.TransformIterator<S,T> 
- All Implemented Interfaces:
 Iterator<T>,SplitableIterator<T>
- 
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()booleanTests to determine if this Iterator is capable of splitting into two new Iterators.next()static <S,T> TransformIterator <S, T> of(SplitableIterator<S> source, java.util.function.Function<S, T> transforminator) Whenever isSplitAllowed returns true this method can be used to create two new SplitableIterators that collectively visit all the same elements as this Iterator.Methods inherited from class org.javimmutable.collections.iterators.AbstractSplitableIterator
spliteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove 
- 
Method Details
- 
of
public static <S,T> TransformIterator<S,T> of(@Nonnull SplitableIterator<S> source, @Nonnull java.util.function.Function<S, T> transforminator)  - 
hasNext
public boolean hasNext() - 
next
 - 
isSplitAllowed
public boolean isSplitAllowed()Description copied from interface:SplitableIteratorTests to determine if this Iterator is capable of splitting into two new Iterators. - 
splitIterator
Description copied from interface:SplitableIteratorWhenever isSplitAllowed returns true this method can be used to create two new SplitableIterators that collectively visit all the same elements as this Iterator. Whenever isSplitAllowed returns false this method throws UnsupportedOperationException.- Returns:
 - two new SplitableIterators spanning the same elements as this
 
 
 -