com.mysema.commons.lang
Interface CloseableIterator<T>

All Superinterfaces:
Closeable, Iterator<T>
All Known Implementing Classes:
EmptyCloseableIterator, IteratorAdapter

public interface CloseableIterator<T>
extends Iterator<T>, Closeable

Iterator with Closeable

Version:
$Id$
Author:
tiwe

Method Summary
 void close()
          Closes this iterator and releases any system resources associated with it.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

void close()
Closes this iterator and releases any system resources associated with it. If the iterator is already closed then invoking this method has no effect.

Specified by:
close in interface Closeable


Copyright © 2008-2012 Mysema Ltd. All Rights Reserved.