Interface ValueModifier<T extends @Nullable Object>

Type Parameters:
T - the value type
All Superinterfaces:
Serializable
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 interface ValueModifier<T extends @Nullable Object> extends Serializable
Receives the current value of a signal for in-place modification. Used with reference signals to apply changes to mutable values while ensuring dependents are properly notified of the change.

This is typically used when you have a mutable object stored in a signal and want to modify it in place rather than replacing it with a new instance.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modify(T value)
    Modifies the provided value in place.
  • Method Details

    • modify

      void modify(T value)
      Modifies the provided value in place.
      Parameters:
      value - the value to modify