T
- The type returned by the ResultSetIteratorpublic abstract class ResultSetIterator<T> extends Object implements Iterator<T>
Constructor and Description |
---|
ResultSetIterator(Statement stm,
ResultSet res)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
filter(ResultSet result)
Returns the object corresponding to the given object, or null if that object is to be skipped.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
T |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ResultSetIterator(Statement stm, ResultSet res)
res
- a ResultSet for this Iterator to operate on.public boolean hasNext()
public abstract T filter(ResultSet result)
result
- An object in the source iterator domainpublic T next()
hasNext()
method
returns false will return each element in the underlying collection exactly once.next
in interface Iterator<T>
NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface Iterator<T>
UnsupportedOperationException
- if the remove operation is not supported by this Iterator.IllegalStateException
- if the next method has not yet been called, or the remove method
has already been called after the last call to the next method.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.