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(DATATYPE aChangedObject)
    Called after the object changed.
    beforeChange(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.