Searched refs:ofNullable (Results 1 – 3 of 3) sorted by relevance
40 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()
116 public static <T> Optional<T> ofNullable(T value) { in ofNullable() method in Optional211 return Optional.ofNullable(mapper.apply(value)); in map()
718 a -> Optional.ofNullable(a.value), CH_NOID);