Package com.networknt.schema.utils
Class CachingSupplier<T>
- java.lang.Object
-
- com.networknt.schema.utils.CachingSupplier<T>
-
- Type Parameters:
T
- the type of results supplied by this supplier
- All Implemented Interfaces:
java.util.function.Supplier<T>
public class CachingSupplier<T> extends java.lang.Object implements java.util.function.Supplier<T>
Supplier
that caches the value.This is not threadsafe.
-
-
Constructor Summary
Constructors Constructor Description CachingSupplier(java.util.function.Supplier<T> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
-