org.apache.accumulo.core.util
Class PeekingIterator<E>

java.lang.Object
  extended by org.apache.accumulo.core.util.PeekingIterator<E>
All Implemented Interfaces:
Iterator<E>

public class PeekingIterator<E>
extends Object
implements Iterator<E>


Constructor Summary
PeekingIterator(Iterator<E> source)
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
 E peek()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeekingIterator

public PeekingIterator(Iterator<E> source)
Method Detail

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 The Apache Software Foundation. All Rights Reserved.