Class CachingSupplier<T>

java.lang.Object
org.microbean.invoke.CachingSupplier<T>
Type Parameters:
T - The type of object returned by the get() method
All Implemented Interfaces:
Supplier<T>, OptionalSupplier<T>

public final class CachingSupplier<T> extends Object implements OptionalSupplier<T>
An OptionalSupplier that computes the value it will return from its get() method when that method is first invoked, and that returns that computed value for all subsequent invocations of that method.
Author:
Laird Nelson
See Also: