orElseThrow abstract method

T orElseThrow(
  1. Object supplyError()
)

Returns this Optional's value, if present. Otherwise, throws the result of calling supplyError().

Implementation

T orElseThrow(Object Function() supplyError);