Package com.vaadin.signals.function
Interface ValueModifier<T>
- Type Parameters:
T- the value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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
-
Method Details
-
modify
Modifies the provided value in place.- Parameters:
value- the value to modify, may benull
-