Interface IChangeCallback<DATATYPE>

Type Parameters:
DATATYPE - The type of object that is changed
All Superinterfaces:
ICallback

public interface IChangeCallback<DATATYPE> extends ICallback
Simple notification interface.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterChange(@NonNull DATATYPE aChangedObject)
    Called after the object changed.
    @NonNull EContinue
    beforeChange(@NonNull DATATYPE aObjectToChange)
    Called before the object will be changed.
  • Method Details

    • beforeChange

      @NonNull EContinue beforeChange(@NonNull DATATYPE aObjectToChange)
      Called before the object will be changed.
      Parameters:
      aObjectToChange - The object to be changed. Never null.
      Returns:
      EContinue.CONTINUE if the action may be performed. If the return value is EContinue.BREAK the action will not be performed.
    • afterChange

      void afterChange(@NonNull DATATYPE aChangedObject)
      Called after the object changed.
      Parameters:
      aChangedObject - The changed object. Never null.