Class DefaultCloseableIterator<T>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.util.DefaultCloseableIterator<T>
 
- 
- All Implemented Interfaces:
- Closeable,- 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.CloseableIteratorCloseableIterator.EmptyCloseableIterator<T>
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultCloseableIterator(Iterator<T> iterator)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()Tnext()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 
- 
 
- 
- 
- 
Method Detail- 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- CloseableIterator<T>
 
 
- 
 
-