@NotThreadSafe public class CachingSupplier<T> extends Object implements java.util.function.Supplier<T>
Supplier
that returns a single, lazily instantiated, value.Constructor and Description |
---|
CachingSupplier(java.util.function.Supplier<T> backingSupplier) |
public CachingSupplier(java.util.function.Supplier<T> backingSupplier)
public T get()
get
in interface java.util.function.Supplier<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.