Class AbstractLinkedDeque.AbstractLinkedIterator
java.lang.Object
com.github.benmanes.caffeine.cache.AbstractLinkedDeque.AbstractLinkedIterator
- All Implemented Interfaces:
LinkedDeque.PeekingIterator<E>
,Iterator<E>
- Enclosing class:
- AbstractLinkedDeque<E>
abstract class AbstractLinkedDeque.AbstractLinkedIterator
extends Object
implements LinkedDeque.PeekingIterator<E>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLinkedIterator
(E start) Creates an iterator that can can traverse the deque. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
Constructor Details
-
AbstractLinkedIterator
AbstractLinkedIterator(E start) Creates an iterator that can can traverse the deque.- Parameters:
start
- the initial element to begin traversal from
-
-
Method Details
-
hasNext
public boolean hasNext() -
peek
Description copied from interface:LinkedDeque.PeekingIterator
Returns the next element in the iteration, without advancing the iteration.- Specified by:
peek
in interfaceLinkedDeque.PeekingIterator<E>
-
next
-
computeNext
Retrieves the next element to traverse to or null if there are no more elements. -
remove
public void remove()
-