Package com.helger.commons.callback
Interface IChangeCallback<DATATYPE>
- Type Parameters:
DATATYPE- The type of object that is changed
- All Superinterfaces:
ICallback
Simple notification interface.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterChange(DATATYPE aChangedObject) Called after the object changed.beforeChange(DATATYPE aObjectToChange) Called before the object will be changed.
-
Method Details
-
beforeChange
Called before the object will be changed.- Parameters:
aObjectToChange- The object to be changed. Nevernull.- Returns:
EContinue.CONTINUEif the action may be performed. If the return value isEContinue.BREAKthe action will not be performed.
-
afterChange
Called after the object changed.- Parameters:
aChangedObject- The changed object. Nevernull.
-