Searched defs:exceptionSupplier (Results 1 - 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
H A DOptionalDouble.java174 * @param exceptionSupplier The supplier which will return the exception to
179 * {@code exceptionSupplier} is null
181 public<X extends Throwable> double orElseThrow(Supplier<X> exceptionSupplier) throws X { argument
185 throw exceptionSupplier.get();
H A DOptionalInt.java175 * @param exceptionSupplier The supplier which will return the exception to
180 * {@code exceptionSupplier} is null
182 public<X extends Throwable> int orElseThrow(Supplier<X> exceptionSupplier) throws X { argument
186 throw exceptionSupplier.get();
H A DOptionalLong.java174 * @param exceptionSupplier The supplier which will return the exception to
179 * {@code exceptionSupplier} is null
181 public<X extends Throwable> long orElseThrow(Supplier<X> exceptionSupplier) throws X { argument
185 throw exceptionSupplier.get();
H A DOptional.java275 * @param exceptionSupplier The supplier which will return the exception to
280 * {@code exceptionSupplier} is null
282 public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { argument
286 throw exceptionSupplier.get();

Completed in 36 milliseconds