public class DelimitingIterator<U,V> extends ReferenceIterator<U>
Iterator that delimits the items of another Iterator with a delimiter object.iterator| Constructor and Description |
|---|
DelimitingIterator(java.util.Iterator<U> iterator,
java.util.Optional<? extends V> prefix,
java.util.Optional<? extends V> delimiter,
java.util.Optional<? extends V> suffix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
U |
next() |
void |
remove() |
public boolean hasNext()
public U next()