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(@Nullable 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, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
Constructor Details
-
AbstractLinkedIterator
AbstractLinkedIterator(@Nullable 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.PeekingIteratorReturns the next element in the iteration, without advancing the iteration.- Specified by:
peekin interfaceLinkedDeque.PeekingIterator<E>
-
next
-
computeNext
Retrieves the next element to traverse to or null if there are no more elements. -
remove
public void remove()
-