Searched refs:checkPresent (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/test/java/util/Optional/ |
D | Basic.java | 99 void checkPresent(Optional<String> opt, String expected) { in checkPresent() method in Basic 150 checkPresent(Optional.of("xyzzy"), "xyzzy"); in testOfPresent() 160 checkPresent(Optional.ofNullable("xyzzy"), "xyzzy"); in testOfNullablePresent() 175 checkPresent(Optional.of("xyzzy").filter(s -> s.equals("xyzzy")), "xyzzy"); in testFilterTrue() 185 checkPresent(Optional.of("xyzzy").map(s -> s.replace("xyzzy", "plugh")), "plugh"); in testMapPresent() 201 checkPresent(Optional.of("xyzzy") in testFlatMapPresentReturnPresent() 217 checkPresent(Optional_or(Optional.<String>empty(), () -> Optional.of("plugh")), "plugh"); in testOrEmptyPresent() 224 …checkPresent(Optional_or(Optional.of("xyzzy"), () -> { fail(); return Optional.of("plugh"); }), "x… in testOrPresentDontCare()
|
D | BasicInt.java | 95 void checkPresent(OptionalInt opt, int expected) { in checkPresent() method in BasicInt 139 checkPresent(OptionalInt.of(INTVAL), INTVAL); in testPresent()
|
D | BasicDouble.java | 94 void checkPresent(OptionalDouble opt, double expected) { in checkPresent() method in BasicDouble 139 checkPresent(OptionalDouble.of(DOUBLEVAL), DOUBLEVAL); in testPresent()
|
D | BasicLong.java | 94 void checkPresent(OptionalLong opt, long expected) { in checkPresent() method in BasicLong 139 checkPresent(OptionalLong.of(LONGVAL), LONGVAL); in testPresent()
|