public interface TxnIterator<E> extends 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).
|
forEachRemaining, hasNext, next, remove
boolean hasNext(Txn txn)
txn
- Txn used for this operationE next(Txn txn)
txn
- Txn used for this operationNoSuchElementException
- iteration has no more elements.void remove(Txn txn)
txn
- Txn used for this operationUnsupportedOperationException
- 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 © 2020. All rights reserved.