Class Suppliers
- java.lang.Object
 - 
- org.apache.commons.lang3.function.Suppliers
 
 
- 
public class Suppliers extends java.lang.ObjectHelps useSupplier.- Since:
 - 3.13.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Suppliers() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tget(java.util.function.Supplier<T> supplier)Null-safe call toSupplier.get().static <T> java.util.function.Supplier<T>nul()Returns the singleton supplier that always returns null. 
 - 
 
- 
- 
Method Detail
- 
get
public static <T> T get(java.util.function.Supplier<T> supplier)
Null-safe call toSupplier.get().- Type Parameters:
 T- the type of results supplied by this supplier.- Parameters:
 supplier- the supplier or null.- Returns:
 - Result of 
Supplier.get()or null. 
 
- 
nul
public static <T> java.util.function.Supplier<T> nul()
Returns the singleton supplier that always returns null.This supplier never throws an exception.
- Type Parameters:
 T- Supplied type.- Returns:
 - The NUL singleton.
 - Since:
 - 3.14.0
 
 
 - 
 
 -