T
- The type of value held by the property.public final class TransactedPropertyChangedEventArgs<T> extends EventArgs implements IDisposable
TransactedProperty
.Constructor and Description |
---|
TransactedPropertyChangedEventArgs(TransactionContext context,
T oldValue,
T newValue)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases any resources associated with this instance.
|
Transaction |
getChainedTransaction()
Gets a
Transaction that can be used to make additional changes that will
be committed immediately after the current transaction finishes committing. |
T |
getNewValue()
Gets the new value of the property.
|
T |
getOldValue()
Gets the old value of the property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public TransactedPropertyChangedEventArgs(TransactionContext context, T oldValue, T newValue)
context
- The TransactionContext
to use.oldValue
- The old value of the property.newValue
- The new value of the property.public final void dispose()
dispose
in interface IDisposable
public final T getOldValue()
public final T getNewValue()
@Nonnull public final Transaction getChainedTransaction()
Transaction
that can be used to make additional changes that will
be committed immediately after the current transaction finishes committing.
It is not necessary (or allowed) to explicitly call Transaction.commit()
on this transaction
because it will automatically be called at the appropriate time.