Class Iterators.PeekingImpl<A>
java.lang.Object
io.atlassian.fugue.Iterators.PeekingImpl<A>
- All Implemented Interfaces:
Iterators.Peek<A>, Iterators.Peeking<A>, Iterator<A>
- Enclosing class:
Iterators
Implementation of Iterators.Peeking that avoids peeking unless necessary.
- Since:
- 3.0
-
Field Details
-
iterator
-
hasPeeked
private boolean hasPeeked -
peekedElement
-
-
Constructor Details
-
PeekingImpl
-
-
Method Details
-
hasNext
-
next
-
remove
-
peek
Description copied from interface:Iterators.PeekLook at but do not modify the "next" thing.- Specified by:
peekin interfaceIterators.Peek<A>
-