com.ebay.erl.mobius.util
Interface CloseableIterator<E>

Type Parameters:
E -
All Superinterfaces:
java.io.Closeable, java.util.Iterator<E>

public interface CloseableIterator<E>
extends java.util.Iterator<E>, java.io.Closeable

An Iterator with Closeable.


Method Summary
 void close()
          
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

void close()

If the elements of this iterator has not been all iterated over, but the user exit the iterating loop, this method MUST BE CALLED to release any system resources associated with it.

Specified by:
close in interface java.io.Closeable