Class SupplierUtils
java.lang.Object
org.springframework.util.function.SupplierUtils
Convenience utilities for 
Supplier handling.- Since:
- 5.1
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectResolve a givenSupplier, getting its result or immediately returning the given Object as-is if not aSupplier.static <T> TResolve the givenSupplier, getting its result or immediately returningnullif the supplier itself wasnull.
- 
Constructor Details- 
SupplierUtilspublic SupplierUtils()
 
- 
- 
Method Details- 
resolveResolve the givenSupplier, getting its result or immediately returningnullif the supplier itself wasnull.- Parameters:
- supplier- the supplier to resolve
- Returns:
- the supplier's result, or nullif none
 
- 
resolveResolve a givenSupplier, getting its result or immediately returning the given Object as-is if not aSupplier.- Parameters:
- candidate- the candidate to resolve (potentially a- Supplier)
- Returns:
- a supplier's result or the given Object as-is
- Since:
- 6.1.4
 
 
-