| Constructor and Description |
|---|
Suppliers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(Supplier<T> supplier)
Null-safe call to
Supplier.get(). |
static <T> Supplier<T> |
nul()
Returns the singleton supplier that always returns null.
|
public static <T> T get(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> Supplier<T> nul()
This supplier never throws an exception.
T - Supplied type.Copyright © 2001–2024 The Apache Software Foundation. All rights reserved.