MCPcopy Create free account
hub / github.com/android10/arrow / or

Method or

src/main/java/com/fernandocejas/arrow/optional/Optional.java:145–145  ·  view source on GitHub ↗

Returns the contained instance if it is present; defaultValue otherwise. If no default value should be required because the instance is known to be present, use #get() instead. For a default value of null, use #orNull. Note about generics: The signature {@code pub

(T defaultValue)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected