public interface TxnIterator<E>
extends java.util.Iterator<E>
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext(Txn txn)
Returns true if the iteration has more elements.
|
E |
next(Txn txn)
Returns the next element in the iteration.
|
void |
remove(Txn txn)
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
boolean hasNext(Txn txn)
txn
- Txn used for this operationE next(Txn txn)
txn
- Txn used for this operationjava.util.NoSuchElementException
- iteration has no more elements.void remove(Txn txn)
txn
- Txn used for this operationjava.lang.UnsupportedOperationException
- if the remove
operation is not supported by this Iterator.java.lang.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.