V
- type of the objects returns by the iterator.public static class ObjectResultSet.ObjectResultSetIterator<V> extends Object implements Iterator<V>
Simple implementation of an iterator that consumes a object result-set.
This class can be used for an iterator returned by the
ObjectResultSet.iterator()
method.
The hasNext()
method returns
!objectResultSet.isExhausted()
. The next()
method
delegates to and returns the value of objectResultSet.one()
.
The remove()
throws an UnsupportedOperationException
.
As the ObjectResultSet.isExhausted()
and
ObjectResultSet.one()
methods may block, the iterator may block.
Constructor and Description |
---|
ObjectResultSetIterator(ObjectResultSet<? extends V> objectResultSet)
Creates an iterator that iterates over the specified object
result-set, consuming the objects in the set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
V |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ObjectResultSetIterator(ObjectResultSet<? extends V> objectResultSet)
objectResultSet
- object result-set over which the iterator iterates. The
iterator only uses the set's isExhausted()
and one()
methods.Copyright © 2011–2016 aquenos GmbH. All rights reserved.