public class PredicatePartitioningLongIterator extends DelegatingTransformingIterator<java.lang.Long,LongIterator,LongSequence>
CharIterator
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 |
---|
PredicatePartitioningLongIterator(LongIterator iterator,
LongBiPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
LongSequence |
next() |
void |
remove() |
public PredicatePartitioningLongIterator(LongIterator iterator, LongBiPredicate predicate)
public boolean hasNext()
hasNext
in interface java.util.Iterator<LongSequence>
hasNext
in class DelegatingTransformingIterator<java.lang.Long,LongIterator,LongSequence>
public LongSequence next()
public void remove()
remove
in interface java.util.Iterator<LongSequence>
remove
in class DelegatingTransformingIterator<java.lang.Long,LongIterator,LongSequence>