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

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

Completed in 4752 milliseconds