- Type Parameters:
T
- The type returned from the supplier
- All Superinterfaces:
- Serializable, Supplier<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 interface SerializableSupplier<T>
extends Supplier<T>, Serializable
This is a simple Supplier that is also Serializable. This is useful to not require users to cast their Supplier
when a Serializable version is required. This allows lambdas to be placed directly for easy convenience.