Class FixedCachingSupplier<T>

    • Field Detail

      • supplier

        protected Supplier<? extends T> supplier
        The supplier to cache. Set to null after use to indicate that we already have the result.
      • value

        protected T value
    • Constructor Detail

      • FixedCachingSupplier

        public FixedCachingSupplier​(Supplier<? extends T> supplier)
    • Method Detail

      • get

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