Class ThreadSafeCachingSupplier<T>

java.lang.Object
com.networknt.schema.utils.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 Details

    • ThreadSafeCachingSupplier

      public ThreadSafeCachingSupplier(Supplier<T> delegate)
  • Method Details

    • get

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