Class CachingSupplier<T>

  • All Implemented Interfaces:
    Supplier<T>

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

      • CachingSupplier

        public CachingSupplier​(Supplier<T> backingSupplier)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Supplier<T>