Class Ref.ChangeEvent<T>

  • Type Parameters:
    T - reference type
    Enclosing class:
    Ref<T>

    public static final class Ref.ChangeEvent<T>
    extends Object
    Event passed to Ref.onChangeHandler when the Ref value changes. Provides access to the current and previous values, where they exist.
    • Method Detail

      • current

        public Optional<T> current()
        Query the current value.
        Returns:
        current value or empty optional
      • previous

        public Optional<T> previous()
        Query the previous value.
        Returns:
        previous value or empty optional