Enum Class Value.Notify

java.lang.Object
java.lang.Enum<Value.Notify>
is.codion.common.value.Value.Notify
All Implemented Interfaces:
Serializable, Comparable<Value.Notify>, Constable
Enclosing interface:
Value<T>

public static enum Value.Notify extends Enum<Value.Notify>
Specifies when a Value instance notifies its listeners.
  • Enum Constant Details

    • WHEN_SET

      public static final Value.Notify WHEN_SET
      Notify listeners when the underlying value is set via Value.set(Object), regardless of whether the new value is equal to the previous value.
    • WHEN_CHANGED

      public static final Value.Notify WHEN_CHANGED
      Notify listeners when the underlying value is changed via Value.set(Object), that is, only when the new value differs from the previous value.
  • Method Details

    • values

      public static Value.Notify[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Value.Notify valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null