Class CachingSupplier<T>

  • All Implemented Interfaces:
    java.util.function.Supplier<T>

    @NotThreadSafe
    public class CachingSupplier<T>
    extends Object
    implements java.util.function.Supplier<T>
    A Supplier that returns a single, lazily instantiated, value.
    • Constructor Detail

      • CachingSupplier

        public CachingSupplier​(java.util.function.Supplier<T> backingSupplier)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface java.util.function.Supplier<T>