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 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.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.