Interface DataSlot.ChangeListener<T>

Type Parameters:
T - the data slot content type
Enclosing interface:
DataSlot<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DataSlot.ChangeListener<T>
A listener for data slot value changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onValueChanged(DataSlot<T> dataSlot, T from, T to)
    Called when a data slot's value changes.
  • Method Details

    • onValueChanged

      void onValueChanged(DataSlot<T> dataSlot, T from, T to)
      Called when a data slot's value changes.
      Parameters:
      dataSlot - the data slot for which the event was triggered
      from - the old value
      to - the new value