getOrDefault abstract method

S getOrDefault(
  1. S defaultValue
)

Returns the encapsulated value if this instance represents Success or the defaultValue if it is Failure.

Implementation

S getOrDefault(S defaultValue);