Class ThreadSafeCachingSupplier<T>

  • Type Parameters:
    T - the type of results cached by this supplier
    All Implemented Interfaces:
    Supplier<T>

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

      • ThreadSafeCachingSupplier

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

      • get

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