Interface OptionalSupplier<T>

Type Parameters:
T - the type of value implementations of this interface supply
All Superinterfaces:
Supplier<T>
All Known Implementing Classes:
Absence, CachingSupplier, FixedValueSupplier
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 OptionalSupplier<T> extends Supplier<T>
A Supplier with additional contractual requirements.

An OptionalSupplier does not behave like an Optional or a CompletableFuture, despite the deliberate similarities of some method names.

An implementation of this interface is not a value-based class.

Author:
Laird Nelson
See Also: