public class SupplierUtil
extends java.lang.Object
Supplier
.Constructor and Description |
---|
SupplierUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.function.Supplier<T> |
memoized(java.util.function.Supplier<T> actual)
Caches the result of supplier in a thread safe manner.
|
static <T> java.util.function.Supplier<T> |
memoizedNonEmpty(java.util.function.Supplier<T> actual)
Caches the result of supplier in a thread safe manner.
|
public static <T> java.util.function.Supplier<T> memoized(java.util.function.Supplier<T> actual)
T
- The type of resultactual
- The supplier providing the resultpublic static <T> java.util.function.Supplier<T> memoizedNonEmpty(java.util.function.Supplier<T> actual)
T
- The type of resultactual
- The supplier providing the result