Searched refs:orElseThrow (Results 1 – 13 of 13) sorted by relevance
/libcore/ojluni/src/main/java/java/util/ |
D | OptionalInt.java | 240 public int orElseThrow() { in orElseThrow() method in OptionalInt 264 public<X extends Throwable> int orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { in orElseThrow() method in OptionalInt
|
D | OptionalLong.java | 240 public long orElseThrow() { in orElseThrow() method in OptionalLong 264 public<X extends Throwable> long orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { in orElseThrow() method in OptionalLong
|
D | OptionalDouble.java | 240 public double orElseThrow() { in orElseThrow() method in OptionalDouble 264 … public<X extends Throwable> double orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { in orElseThrow() method in OptionalDouble
|
D | Optional.java | 376 public T orElseThrow() { in orElseThrow() method in Optional 400 public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X { in orElseThrow() method in Optional
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalIntTest.java | 76 assertEquals(57, OptionalInt.of(57).orElseThrow(barSupplier)); in testOrElseThrow() 79 OptionalInt.empty().orElseThrow(barSupplier); in testOrElseThrow()
|
D | OptionalLongTest.java | 76 assertEquals(57, OptionalLong.of(57).orElseThrow(barSupplier)); in testOrElseThrow() 79 OptionalLong.empty().orElseThrow(barSupplier); in testOrElseThrow()
|
D | OptionalDoubleTest.java | 78 assertEquals(57.0, OptionalDouble.of(57.0).orElseThrow(barSupplier)); in testOrElseThrow() 81 OptionalDouble.empty().orElseThrow(barSupplier); in testOrElseThrow()
|
D | OptionalTest.java | 198 empty.orElseThrow(barSupplier); in testOrElseThrow() 205 ofNull.orElseThrow(barSupplier); in testOrElseThrow() 213 assertSame(foo, optionalFoo.orElseThrow(barSupplier)); in testOrElseThrow()
|
/libcore/ojluni/src/test/java/util/Optional/ |
D | BasicInt.java | 74 assertThrows(ObscureException.class, () -> empty.orElseThrow(ObscureException::new)); in checkEmpty() 115 assertEquals(opt.orElseThrow(ObscureException::new), expected); in checkPresent()
|
D | BasicLong.java | 73 assertThrows(ObscureException.class, () -> empty.orElseThrow(ObscureException::new)); in checkEmpty() 115 assertEquals(opt.orElseThrow(ObscureException::new), expected); in checkPresent()
|
D | BasicDouble.java | 73 assertThrows(ObscureException.class, () -> empty.orElseThrow(ObscureException::new)); in checkEmpty() 115 assertEquals(opt.orElseThrow(ObscureException::new), expected); in checkPresent()
|
D | Basic.java | 77 assertThrows(ObscureException.class, () -> empty.orElseThrow(ObscureException::new)); in checkEmpty() 119 assertEquals(opt.orElseThrow(ObscureException::new), expected); in checkPresent()
|
/libcore/api/ |
D | current.txt | 13759 method public T orElseThrow(); 13760 …method public <X extends java.lang.Throwable> T orElseThrow(java.util.function.Supplier<? extends … 13774 method public double orElseThrow(); 13775 …method public <X extends java.lang.Throwable> double orElseThrow(java.util.function.Supplier<? ext… 13789 method public int orElseThrow(); 13790 …method public <X extends java.lang.Throwable> int orElseThrow(java.util.function.Supplier<? extend… 13804 method public long orElseThrow(); 13805 …method public <X extends java.lang.Throwable> long orElseThrow(java.util.function.Supplier<? exten…
|