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