public class SplittingCharIterator extends DelegatingIterator<java.lang.Character,CharIterator,CharSeq>
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 |
---|
SplittingCharIterator(CharIterator iterator,
char element) |
SplittingCharIterator(CharIterator iterator,
CharPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
CharSeq |
next() |
void |
remove() |
hasNext
public SplittingCharIterator(CharIterator iterator, char element)
public SplittingCharIterator(CharIterator iterator, CharPredicate predicate)
public CharSeq next()
public void remove()
remove
in interface java.util.Iterator<CharSeq>
remove
in class DelegatingIterator<java.lang.Character,CharIterator,CharSeq>