| Constructor and Description |
|---|
Suppliers()
Deprecated.
TODO Make private in 4.0.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(Supplier<T> supplier)
Null-safe call to
Supplier.get(). |
static <T> Supplier<T> |
nul()
Gets the singleton supplier that always returns null.
|
@Deprecated public Suppliers()
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–2025 The Apache Software Foundation. All rights reserved.