Return the mod object if present, otherwise invoke other and return the result of that invocation. @param other a Supplier whose result is returned if no mod object is present @return the mod object if present otherwise the result of other.get() @throws NullPointerException
(Supplier<? extends T> other)
| 196 | * null |
| 197 | */ |
| 198 | public T orElseGet(Supplier<? extends T> other) { |
| 199 | return getValue() != null ? getValue() : other.get(); |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * Return the contained mod object, if present, otherwise throw an exception |
no test coverage detected