Class DefaultCloseableIterator<T>
- java.lang.Object
 - 
- org.apache.tinkerpop.gremlin.structure.util.DefaultCloseableIterator<T>
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,Iterator<T>,CloseableIterator<T>
- Direct Known Subclasses:
 CloseableIterator.EmptyCloseableIterator
public class DefaultCloseableIterator<T> extends Object implements CloseableIterator<T>
A default implementation ofCloseableIteratorthat simply wraps an existingIterator. This implementation has a "do nothing" implementation ofclose().- Author:
 - Stephen Mallette (http://stephen.genoprime.com)
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.CloseableIterator
CloseableIterator.EmptyCloseableIterator<T> 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DefaultCloseableIterator(Iterator<T> iterator) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()Tnext()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface java.util.Iterator
forEachRemaining, remove 
 - 
 
 -