Home
last modified time | relevance | path

Searched refs:ofNullable (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DOptionalTest.java40 assertSame(Optional.<String>empty(), Optional.ofNullable(null)); in testEmpty_sameInstance()
64 assertFalse(Optional.<String>ofNullable(null).isPresent()); in testIsPresent()
69 Optional<String> ofNull = Optional.ofNullable(null); in testIfPresent()
86 Optional<String> ofNull = Optional.ofNullable(null); in testFilter()
109 Optional<String> ofNull = Optional.ofNullable(null); in testMap()
130 Optional<String> ofNull = Optional.ofNullable(null); in testFlatMap()
164 Optional<String> ofNull = Optional.ofNullable(null); in testOrElse()
177 Optional<String> ofNull = Optional.ofNullable(null); in testOrElseGet()
192 Optional<String> ofNull = Optional.ofNullable(null); in testOrElseThrow()
216 assertEquals(Optional.empty(), Optional.<String>ofNullable(null)); in testEquals()
/libcore/ojluni/src/main/java/java/util/
DOptional.java116 public static <T> Optional<T> ofNullable(T value) { in ofNullable() method in Optional
211 return Optional.ofNullable(mapper.apply(value)); in map()
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java718 a -> Optional.ofNullable(a.value), CH_NOID);