Example usage for Java com.google.common.collect PeekingIterator fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | hasNext() Returns true if the iteration has more elements. |
E | next() The objects returned by consecutive calls to #peek() then #next() are guaranteed to be equal to each other. |
E | peek() Returns the next element in the iteration, without advancing the iteration. |
void | remove() Implementations may or may not support removal when a call to #peek() has occurred since the most recent call to #next() . |