Interface ChangeManaging<T>

Type Parameters:
T - The type of the value held by the implementor.

public interface ChangeManaging<T>
Aspect definition for a gadget that manages its changes.
Since:
4.2.436
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final AspectType<ChangeManaging<?>>
    Aspect definition for a gadget that manages changes on its value.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Proposes a change to clear the currently set value.A subsequent call to hasChanges() should return true.
    boolean
    Indicates that the gadget has changes.
    void
    replaceValue(T value)
    Proposes a change to replace the currently set value with the given one.
  • Field Details

    • TYPE

      static final AspectType<ChangeManaging<?>> TYPE
      Aspect definition for a gadget that manages changes on its value.
      Since:
      4.2.436
  • Method Details

    • hasChanges

      boolean hasChanges()
      Indicates that the gadget has changes.
      Returns:
      true, if the gadget has changes.
      Since:
      4.2.436
    • replaceValue

      void replaceValue(@Nullable T value)
      Proposes a change to replace the currently set value with the given one. A subsequent call to hasChanges() should return true.
      Parameters:
      value - The replacement value.
      Since:
      4.2.436
    • clearValue

      void clearValue()
      Proposes a change to clear the currently set value.A subsequent call to hasChanges() should return true.
      Since:
      4.2.436