Package org.jdbi.v3.core.result
Class ResultIterable.ResultIteratorDelegate<T,R>
- java.lang.Object
-
- org.jdbi.v3.core.result.ResultIterable.ResultIteratorDelegate<T,R>
-
- Type Parameters:
T- iterable element type of delegateR- returned iterable element type, may be same as delegate's (T)
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.util.Iterator<R>,ResultIterator<R>
- Enclosing interface:
- ResultIterable<T>
public abstract static class ResultIterable.ResultIteratorDelegate<T,R> extends java.lang.Object implements ResultIterator<R>
An implementation ofResultIteratorthat delegates calls to the iterator provided in the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description private ResultIterator<T>delegate
-
Constructor Summary
Constructors Constructor Description ResultIteratorDelegate(ResultIterator<T> del)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the underlying result set.StatementContextgetContext()Returns the currentStatementContext.protected ResultIterator<T>getDelegate()booleanhasNext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.result.ResultIterator
forEachRemaining
-
-
-
-
Field Detail
-
delegate
private final ResultIterator<T> delegate
-
-
Constructor Detail
-
ResultIteratorDelegate
ResultIteratorDelegate(ResultIterator<T> del)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
close
public final void close()
Description copied from interface:ResultIteratorClose the underlying result set.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceResultIterator<T>
-
getContext
public final StatementContext getContext()
Description copied from interface:ResultIteratorReturns the currentStatementContext.- Specified by:
getContextin interfaceResultIterator<T>- Returns:
- the current
StatementContext.
-
getDelegate
protected final ResultIterator<T> getDelegate()
-
-