T - the type of element that the callback is acting on.public interface CallbackContext<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getCurrentElement()
Returns the element for which the callback has been invoked.
|
int |
getCurrentIndex()
Returns the index in the result of
getElements() of the element for which the callback
has been invoked. |
Transaction |
getCurrentTransaction()
Returns the current transaction, or
null if there is no current transaction. |
java.util.List<T> |
getElements()
Returns an unmodifiable view of the elements involved in the operation that triggered the
callback..
|
java.util.List<T> getElements()
Transaction getCurrentTransaction()
null if there is no current transaction.int getCurrentIndex()
getElements() of the element for which the callback
has been invoked.T getCurrentElement()
getElements().getCurrentIndex().