Class RepeatableIteratorWrapper<E>
java.lang.Object
org.apache.activemq.artemis.utils.collections.RepeatableIteratorWrapper<E>
- All Implemented Interfaces:
Iterator<E>,RepeatableIterator<E>,ResettableIterator<E>
public class RepeatableIteratorWrapper<E>
extends Object
implements RepeatableIterator<E>, ResettableIterator<E>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RepeatableIteratorWrapper
-
-
Method Details
-
repeat
public void repeat()Description copied from interface:RepeatableIteratorIf the current value should repeat.- Specified by:
repeatin interfaceRepeatableIterator<E>
-
removed
- Specified by:
removedin interfaceRepeatableIterator<E>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<E>
-
reset
public void reset()Description copied from interface:ResettableIteratorResets the iterator so that you can iterate over all elements from your current position. Your current position (when reached again) signals the end of iteration as if the collection is circular.- Specified by:
resetin interfaceResettableIterator<E>
-