getOrDefault abstract method
S
getOrDefault(
- S defaultValue
Returns the encapsulated value if this instance represents
Success
or the defaultValue
if it is Failure
.
Implementation
S getOrDefault(S defaultValue);