Home
last modified time | relevance | path

Searched refs:ifPresentOrElse (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DOptionalLongTest.java102 OptionalLong.empty().ifPresentOrElse(heldValueHolder::set, () -> whenEmptyHolder.set(42)); in test_isPresentOrElse_whenEmpty()
112 OptionalLong.of(1001L).ifPresentOrElse(heldValueHolder::set, () -> whenEmptyHolder.set(42)); in test_isPresentOrElse_whenNonEmpty()
/libcore/ojluni/src/main/java/java/util/
DOptionalLong.java181 public void ifPresentOrElse(LongConsumer action, Runnable emptyAction) { in ifPresentOrElse() method in OptionalLong
DOptionalInt.java181 public void ifPresentOrElse(IntConsumer action, Runnable emptyAction) { in ifPresentOrElse() method in OptionalInt
DOptionalDouble.java181 public void ifPresentOrElse(DoubleConsumer action, Runnable emptyAction) { in ifPresentOrElse() method in OptionalDouble
DOptional.java194 public void ifPresentOrElse(Consumer<? super T> action, Runnable emptyAction) { in ifPresentOrElse() method in Optional
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java407 actual.ifPresentOrElse(r -> {
/libcore/api/
Dcurrent.txt14526 method public void ifPresentOrElse(java.util.function.Consumer<? super T>, Runnable);
14544 method public void ifPresentOrElse(java.util.function.DoubleConsumer, Runnable);
14559 method public void ifPresentOrElse(java.util.function.IntConsumer, Runnable);
14574 method public void ifPresentOrElse(java.util.function.LongConsumer, Runnable);