Interface ValueSupplier<T extends @Nullable Object>

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.

@FunctionalInterface public interface ValueSupplier<T extends @Nullable Object> extends Serializable
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

    Modifier and Type
    Method
    Description
    Supplies a value.
  • Method Details

    • supply

      T supply()
      Supplies a value.
      Returns:
      the supplied value