com.ebay.erl.mobius.core.collection
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
.
This product is licensed under the Apache License, Version 2.0,
available at http://www.apache.org/licenses/LICENSE-2.0.
This product contains portions derived from Apache hadoop which is
licensed under the Apache License, Version 2.0, available at
http://hadoop.apache.org.
© 2007 – 2012 eBay Inc., Evan Chiu, Woody Zhou, Neel Sundaresan
Method Summary |
void |
close()
|
Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
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