public class AbstractCloseableMemoizedSupplier<T,E extends Exception> extends Object implements AutoCloseable, java.util.function.Supplier<T>
CloseableMemoizedSupplier
and ThrowingCloseableMemoizedSupplier
Modifier | Constructor and Description |
---|---|
protected |
AbstractCloseableMemoizedSupplier(java.util.function.Supplier<T> supplier,
ThrowingConsumer<T,E> closer) |
protected AbstractCloseableMemoizedSupplier(java.util.function.Supplier<T> supplier, ThrowingConsumer<T,E> closer)
public T get()
get
in interface java.util.function.Supplier<T>