Home
last modified time | relevance | path

Searched refs:ifPresent (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DOptionalIntTest.java51 OptionalInt.empty().ifPresent(alwaysFails); in testIfPresent()
55 OptionalInt.of(56).ifPresent(recorder); in testIfPresent()
DOptionalLongTest.java51 OptionalLong.empty().ifPresent(alwaysFails); in testIfPresent()
55 OptionalLong.of(56).ifPresent(recorder); in testIfPresent()
DOptionalDoubleTest.java53 OptionalDouble.empty().ifPresent(alwaysFails); in testIfPresent()
57 OptionalDouble.of(56.0).ifPresent(recorder); in testIfPresent()
DOptionalTest.java74 empty.ifPresent(alwaysFail); in testIfPresent()
75 ofNull.ifPresent(alwaysFail); in testIfPresent()
80 Optional.of(foo).ifPresent(s -> reference.set(s)); in testIfPresent()
/libcore/ojluni/src/main/java/java/util/
DOptionalInt.java136 public void ifPresent(IntConsumer consumer) { in ifPresent() method in OptionalInt
DOptionalLong.java136 public void ifPresent(LongConsumer consumer) { in ifPresent() method in OptionalLong
DOptionalDouble.java136 public void ifPresent(DoubleConsumer consumer) { in ifPresent() method in OptionalDouble
DOptional.java153 public void ifPresent(Consumer<? super T> consumer) { in ifPresent() method in Optional