Package com.vaadin.flow.signals.function
Interface ValueSupplier<T>
- Type Parameters:
T- the supplied 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.
Supplies a value within a specific context such as a transaction or
lock-protected block.
This is used when the result of an operation needs to be returned, such as in transactional operations where you want to both modify signals and return a value.
- See Also:
-
Method Summary
-
Method Details
-
supply
T supply()Supplies a value.- Returns:
- the supplied value, may be
null
-