Return the mod object if present, otherwise return other. @param other the mod object to be returned if there is no mod object present, may be null @return the mod object, if present, otherwise other
(T other)
| 182 | * @return the mod object, if present, otherwise {@code other} |
| 183 | */ |
| 184 | public T orElse(T other) { |
| 185 | return getValue() != null ? getValue() : other; |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Return the mod object if present, otherwise invoke {@code other} and return |
no test coverage detected