org.apache.accumulo.core.util
Class PeekingIterator<E>
java.lang.Object
org.apache.accumulo.core.util.PeekingIterator<E>
- All Implemented Interfaces:
- Iterator<E>
public class PeekingIterator<E>
- extends Object
- implements Iterator<E>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeekingIterator
public PeekingIterator(Iterator<E> source)
PeekingIterator
public PeekingIterator()
- Creates an uninitialized instance. This should be used in conjunction with
initialize(Iterator)
.
initialize
public PeekingIterator<E> initialize(Iterator<E> source)
- Initializes this iterator, to be used with
PeekingIterator()
.
peek
public E peek()
next
public E next()
- Specified by:
next
in interface Iterator<E>
remove
public void remove()
- Specified by:
remove
in interface Iterator<E>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.