public abstract class SupplierUtils
extends java.lang.Object
Supplier
handling.SingletonSupplier
Constructor and Description |
---|
SupplierUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
resolve(java.util.function.Supplier<T> supplier)
Resolve the given
Supplier , getting its result or immediately
returning null if the supplier itself was null . |
@Nullable public static <T> T resolve(@Nullable java.util.function.Supplier<T> supplier)
Supplier
, getting its result or immediately
returning null
if the supplier itself was null
.supplier
- the supplier to resolvenull
if none