public class PredicatePartitioningDoubleIterator extends DelegatingTransformingIterator<java.lang.Double,DoubleIterator,DoubleSequence>
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 |
---|
PredicatePartitioningDoubleIterator(DoubleIterator iterator,
DoubleBiPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
DoubleSequence |
next() |
void |
remove() |
public PredicatePartitioningDoubleIterator(DoubleIterator iterator, DoubleBiPredicate predicate)
public boolean hasNext()
hasNext
in interface java.util.Iterator<DoubleSequence>
hasNext
in class DelegatingTransformingIterator<java.lang.Double,DoubleIterator,DoubleSequence>
public DoubleSequence next()
public void remove()
remove
in interface java.util.Iterator<DoubleSequence>
remove
in class DelegatingTransformingIterator<java.lang.Double,DoubleIterator,DoubleSequence>