Package org.mapfish.print
Class OptionalUtils
java.lang.Object
org.mapfish.print.OptionalUtils
Utilities for Java's Optional class.
-
Method Summary
-
Method Details
-
or
Return the first optional to be defined.- Type Parameters:
T
- The type- Parameters:
a
- The firstb
- The second- Returns:
- a or b or empty
-
or
Return the first optional to be defined.- Type Parameters:
T
- The type- Parameters:
optionals
- the lambdas returning the optionals- Returns:
- the first non-empty or empty
-