Type Params | Return Type | Name and description |
---|---|---|
|
public T |
get() |
|
public T |
get() |
<T> |
public static Supplier<T> |
memoized(Supplier<T> actual) Caches the result of supplier in a thread safe manner. |
<T> |
public static Supplier<T> |
memoizedNonEmpty(Supplier<T> actual) Caches the result of supplier in a thread safe manner. |
Caches the result of supplier in a thread safe manner.
actual
- The supplier providing the resultT
- The type of resultCaches the result of supplier in a thread safe manner. The result is only cached if it is non null or non empty if an optional.
actual
- The supplier providing the resultT
- The type of result