public class RepeatableIteratorWrapper<E> extends Object implements RepeatableIterator<E>, ResettableIterator<E>
| Constructor and Description |
|---|
RepeatableIteratorWrapper(ResettableIterator<E> iterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachRemaining(Consumer<? super E> action) |
boolean |
hasNext() |
E |
next() |
void |
remove() |
void |
repeat()
If the current value should repeat.
|
void |
reset()
Resets the iterator so that you can iterate over all elements from your current position.
|
public RepeatableIteratorWrapper(ResettableIterator<E> iterator)
public void repeat()
RepeatableIteratorrepeat in interface RepeatableIterator<E>public void forEachRemaining(Consumer<? super E> action)
forEachRemaining in interface Iterator<E>public void reset()
ResettableIteratorreset in interface ResettableIterator<E>Copyright © 2022 The Apache Software Foundation. All rights reserved.