Class MemoizingSupply<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Supply

    public final class MemoizingSupply<T>
    extends Object
    implements Supply
    Supply whose value is pre-computed and cached the first time read() is called.
    • Constructor Detail

      • MemoizingSupply

        public MemoizingSupply​(Supplier<T> supplier)
    • Method Detail

      • read

        public T read()