public abstract class PredicatePartitioningIterator<T,S> extends DelegatingMappingIterator<T,S>
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 |
---|
PredicatePartitioningIterator(java.util.Iterator<T> iterator,
java.util.function.BiPredicate<? super T,? super T> predicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
S |
next() |
void |
remove() |
protected abstract S |
toSequence(java.util.List<T> list) |
public boolean hasNext()
public S next()