public class Suppliers
extends java.lang.Object
Supplier.| Constructor and Description |
|---|
Suppliers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(java.util.function.Supplier<T> supplier)
Null-safe call to
Supplier.get(). |
static <T> java.util.function.Supplier<T> |
nul()
Returns the singleton supplier that always returns null.
|
public static <T> T get(java.util.function.Supplier<T> supplier)
Supplier.get().T - the type of results supplied by this supplier.supplier - the supplier or null.Supplier.get() or null.public static <T> java.util.function.Supplier<T> nul()
This supplier never throws an exception.
T - Supplied type.Copyright © 2010 - 2024 Adobe. All Rights Reserved