Interface LinkedDeque.PeekingIterator<E>
-
- All Superinterfaces:
java.util.Iterator<E>
- All Known Implementing Classes:
AbstractLinkedDeque.AbstractLinkedIterator
- Enclosing interface:
- LinkedDeque<E>
public static interface LinkedDeque.PeekingIterator<E> extends java.util.Iterator<E>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <E> LinkedDeque.PeekingIterator<E>
comparing(LinkedDeque.PeekingIterator<E> first, LinkedDeque.PeekingIterator<E> second, java.util.Comparator<E> comparator)
Returns an iterator that selects the greater element from the backing iterators.static <E> LinkedDeque.PeekingIterator<E>
concat(LinkedDeque.PeekingIterator<E> first, LinkedDeque.PeekingIterator<E> second)
Returns an iterator that returns the first iteration followed by the second iteration.E
peek()
Returns the next element in the iteration, without advancing the iteration.
-
-
-
Method Detail
-
peek
E peek()
Returns the next element in the iteration, without advancing the iteration.
-
concat
static <E> LinkedDeque.PeekingIterator<E> concat(LinkedDeque.PeekingIterator<E> first, LinkedDeque.PeekingIterator<E> second)
Returns an iterator that returns the first iteration followed by the second iteration.
-
comparing
static <E> LinkedDeque.PeekingIterator<E> comparing(LinkedDeque.PeekingIterator<E> first, LinkedDeque.PeekingIterator<E> second, java.util.Comparator<E> comparator)
Returns an iterator that selects the greater element from the backing iterators.
-
-