Class CachingSupplier<T>

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

    public class CachingSupplier<T>
    extends Object
    implements Supplier<T>
    A supplier wrapper which caches the supplied values. This class is not threadsafe!
    Since:
    FileVault 4.0.2
    • Method Detail

      • get

        @Nullable
        public T get()
        Uses the cached value from previous get() calls instead of contacting the underlying delegate
        Specified by:
        get in interface Supplier<T>
        Returns:
        the resolved value (can be null);