public class Suppliers
extends java.lang.Object
Supplier.| Constructor and Description |
|---|
Suppliers()
Deprecated.
TODO Make private in 4.0.
|
| 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()
Gets the singleton supplier that always returns null.
|
@Deprecated public Suppliers()
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 - 2025 Adobe. All Rights Reserved