Class SupplierUtils
java.lang.Object
org.springframework.util.function.SupplierUtils
Convenience utilities for
Supplier
handling.- Since:
- 5.1
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SupplierUtils
public SupplierUtils()
-
-
Method Details
-
resolve
Resolve the givenSupplier
, getting its result or immediately returningnull
if the supplier itself wasnull
.- Parameters:
supplier
- the supplier to resolve- Returns:
- the supplier's result, or
null
if none
-