Searched refs:ofNullable (Results 1 – 10 of 10) sorted by relevance
40 assertSame(Optional.<String>empty(), Optional.ofNullable(null)); in testEmpty_sameInstance()64 assertFalse(Optional.<String>ofNullable(null).isPresent()); in testIsPresent()70 Optional<String> ofNull = Optional.ofNullable(null); in testIfPresent()87 Optional<String> ofNull = Optional.ofNullable(null); in testFilter()110 Optional<String> ofNull = Optional.ofNullable(null); in testMap()131 Optional<String> ofNull = Optional.ofNullable(null); in testFlatMap()165 Optional<String> ofNull = Optional.ofNullable(null); in testOrElse()178 Optional<String> ofNull = Optional.ofNullable(null); in testOrElseGet()193 Optional<String> ofNull = Optional.ofNullable(null); in testOrElseThrow()217 assertEquals(Optional.empty(), Optional.<String>ofNullable(null)); in testEquals()
72 assertEquals(0, Stream.ofNullable(null).count()); in ofNullable_ofNull_isEmpty()77 assertArrayEquals(new Integer[] {10}, Stream.ofNullable(10).toArray()); in ofNullable_ofNonNull()82 assertEquals(1, Stream.ofNullable(Stream.of(10, 20, 30)).count()); in ofNullable_ofNonNullStream()
127 public static <T> Optional<T> ofNullable(T value) { in ofNullable() method in Optional261 return Optional.ofNullable(mapper.apply(value)); in map()
1712 Optional.ofNullable(ICU.convertToTzId(shortTZID)) in defaultTimeZone()
1134 return Optional.ofNullable(exts); in getDefaultExtensions()
154 checkEmpty(Optional.ofNullable(null)); in testOfNullableNull()159 checkPresent(Optional.ofNullable("xyzzy"), "xyzzy"); in testOfNullablePresent()
1411 public static<T> Stream<T> ofNullable(T t) {
930 a -> Optional.ofNullable(a.value), CH_NOID);
1500 Optional.ofNullable(ICU.convertToTzId(tzType)) in localizedBy()
14153 method public static <T> java.util.Optional<T> ofNullable(T);17784 method public static <T> java.util.stream.Stream<T> ofNullable(T);