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

/openjdk9/langtools/test/jdk/javadoc/doclet/testNewLanguageFeatures/pkg/
H A DTypeParameters.java95 * @param exceptionSupplier The supplier which will return the exception to
100 * {@code exceptionSupplier} is null
102 public <X extends Throwable> E orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { argument
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DOptionalLong.java237 * @param exceptionSupplier the supplying function that produces an
244 public<X extends Throwable> long orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { argument
248 throw exceptionSupplier.get();
H A DOptionalInt.java237 * @param exceptionSupplier the supplying function that produces an
244 public<X extends Throwable> int orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { argument
248 throw exceptionSupplier.get();
H A DOptionalDouble.java238 * @param exceptionSupplier the supplying function that produces an
245 public<X extends Throwable> double orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { argument
249 throw exceptionSupplier.get();
H A DOptional.java374 * @param exceptionSupplier the supplying function that produces an
381 public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { argument
385 throw exceptionSupplier.get();

Completed in 91 milliseconds