Class Value<T>

java.lang.Object
org.microbean.loader.spi.Value<T>
Type Parameters:
T - the type of value this Value returns
All Implemented Interfaces:
Supplier<T>, OptionalSupplier<T>

public final class Value<T> extends Object implements OptionalSupplier<T>
An OptionalSupplier of a value that is additionally qualified by a Path partially identifying the kinds of Qualifiers and Paths for which it might be suitable.

Values are typically returned by Provider implementations.

A Value once received retains no reference to whatever produced it and can be regarded as an authoritative source for (possibly ever-changing) values going forward. Notably, it can be cached.

Author:
Laird Nelson
See Also: