Class CachedSupplier<T>

  • Type Parameters:
    T - the type cached
    All Implemented Interfaces:
    Supplier<T>

    public class CachedSupplier<T>
    extends Object
    implements Supplier<T>
    Supplier that caches the output.
    • Constructor Detail

      • CachedSupplier

        public CachedSupplier​(Supplier<T> delegate)
    • Method Detail

      • get

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