public class ReversingListSpliterator<T> extends java.lang.Object implements java.util.Spliterator<T>, ReversableSpliterator
Constructor and Description |
---|
ReversingListSpliterator(java.util.List<T> elements,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
ReversableSpliterator |
copy() |
long |
estimateSize() |
ReversingListSpliterator<T> |
invert() |
boolean |
tryAdvance(java.util.function.Consumer<? super T> action) |
java.util.Spliterator<T> |
trySplit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
isReverse, setReverse
public ReversingListSpliterator(java.util.List<T> elements, boolean reverse)
public ReversingListSpliterator<T> invert()
invert
in interface ReversableSpliterator
public ReversableSpliterator copy()
copy
in interface ReversableSpliterator
public long estimateSize()
estimateSize
in interface java.util.Spliterator<T>
public int characteristics()
characteristics
in interface java.util.Spliterator<T>
public boolean tryAdvance(java.util.function.Consumer<? super T> action)
tryAdvance
in interface java.util.Spliterator<T>