}
public final T getFirst() {
- return tryFirst().get();
+ return tryFirst().orElseThrow();
}
public final Optional<T> tryFirst() {
}
public final U getSecond() {
- return trySecond().get();
+ return trySecond().orElseThrow();
}
public final Optional<U> trySecond() {