Interface Publishers.MapOrSupplyEmpty<T,R>
- Type Parameters:
T
- The next typeR
- The mapped to type
- Enclosing class:
- Publishers
public static interface Publishers.MapOrSupplyEmpty<T,R>
Maps the next result or supplies an empty result.
- Since:
- 2.5.0
-
Method Summary
Modifier and TypeMethodDescriptionMaps next result.Supplies an empty value if there is no next value.
-
Method Details
-
map
Maps next result.- Parameters:
result
- The next value.- Returns:
- The mapped value.
-
supplyEmpty
Supplies an empty value if there is no next value.- Returns:
- The result.
-