Class PeekingIterator
- java.lang.Object
-
- g0201_0300.s0284_peeking_iterator.PeekingIterator
-
-
Constructor Summary
Constructors Constructor Description PeekingIterator(Iterator<Integer> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Integer
next()
Integer
peek()
-
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, remove
-
-