public class SplittingLongIterator extends DelegatingTransformingIterator<java.lang.Long,LongIterator,LongSequence>
Iterator
that can batch up another iterator by comparing two items in sequence and deciding whether
to split up in a batch on those items.iterator
Constructor and Description |
---|
SplittingLongIterator(LongIterator iterator,
long element) |
SplittingLongIterator(LongIterator iterator,
java.util.function.LongPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
LongSequence |
next() |
void |
remove() |
hasNext
public SplittingLongIterator(LongIterator iterator, long element)
public SplittingLongIterator(LongIterator iterator, java.util.function.LongPredicate predicate)
public LongSequence next()
public void remove()
remove
in interface java.util.Iterator<LongSequence>
remove
in class DelegatingTransformingIterator<java.lang.Long,LongIterator,LongSequence>