/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IntReduceTest.java | 60 assertEquals(folded, seedless.orElse(0)); in testOps() 64 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps() 68 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps() 72 assertEquals(folded, seedless.orElse(0)); in testOps() 76 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps() 80 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps()
|
D | ReduceTest.java | 66 assertEquals(folded, seedless.orElse(0)); in testOps() 70 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps() 74 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps() 78 assertEquals(folded, seedless.orElse(0)); in testOps() 82 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps() 86 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps()
|
D | FindFirstOpTest.java | 55 …exerciseOps(countTo(0), s -> Arrays.asList(new Integer[]{s.findFirst().orElse(-1)}).stream(), Arra… in testFindFirst() 56 …), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 1499).findFirst().orElse(-1)}).stream(), Ar… in testFindFirst()
|
D | TabulatorsTest.java | 292 s -> s.min(Integer::compare).orElse(Integer.MAX_VALUE)); 294 s -> s.max(Integer::compare).orElse(Integer.MIN_VALUE)); 314 s -> s.mapToInt(x -> x * 2).average().orElse(0)); 316 s -> s.mapToLong(x -> x * 2).average().orElse(0)); 318 s -> s.mapToDouble(x -> x * 2).average().orElse(0)); 333 s -> s.mapToInt(x -> x * 2).average().orElse(0));
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalIntTest.java | 60 assertEquals(57, OptionalInt.empty().orElse(57)); in testOrElse() 61 assertEquals(56, OptionalInt.of(56).orElse(57)); in testOrElse()
|
D | OptionalLongTest.java | 60 assertEquals(57, OptionalLong.empty().orElse(57)); in testOrElse() 61 assertEquals(56, OptionalLong.of(56).orElse(57)); in testOrElse()
|
D | OptionalDoubleTest.java | 62 assertEquals(57.0, OptionalDouble.empty().orElse(57.0)); in testOrElse() 63 assertEquals(56.0, OptionalDouble.of(56.0).orElse(57.0)); in testOrElse()
|
D | OptionalTest.java | 168 assertSame(bar, empty.orElse(bar)); in testOrElse() 169 assertSame(bar, ofNull.orElse(bar)); in testOrElse() 173 assertSame(foo, optionalFoo.orElse(bar)); in testOrElse()
|
/libcore/ojluni/src/test/java/util/Optional/ |
D | BasicInt.java | 67 assertEquals(empty.orElse(UNEXPECTED), UNEXPECTED); in checkEmpty() 109 assertEquals(opt.orElse(UNEXPECTED), expected); in checkPresent()
|
D | BasicLong.java | 66 assertEquals(empty.orElse(UNEXPECTED), UNEXPECTED); in checkEmpty() 108 assertEquals(opt.orElse(UNEXPECTED), expected); in checkPresent()
|
D | BasicDouble.java | 66 assertEquals(empty.orElse(UNEXPECTED), UNEXPECTED); in checkEmpty() 108 assertEquals(opt.orElse(UNEXPECTED), expected); in checkPresent()
|
D | Basic.java | 70 assertEquals(empty.orElse("x"), "x"); in checkEmpty() 112 assertEquals(opt.orElse("unexpected"), expected); in checkPresent()
|
/libcore/ojluni/src/main/java/java/util/ |
D | OptionalLong.java | 214 public long orElse(long other) { in orElse() method in OptionalLong
|
D | OptionalDouble.java | 214 public double orElse(double other) { in orElse() method in OptionalDouble
|
D | OptionalInt.java | 214 public int orElse(int other) { in orElse() method in OptionalInt
|
D | Optional.java | 350 public T orElse(T other) { in orElse() method in Optional
|
D | Calendar.java | 1714 .orElse(defaultTZ) : in defaultTimeZone()
|
D | Locale.java | 1090 .orElse(null); in initDefault()
|
/libcore/ojluni/src/test/java/util/stream/Collectors/ |
D | CollectorsTest.java | 351 s -> s.min(Integer::compare).orElse(Integer.MAX_VALUE)); 353 s -> s.max(Integer::compare).orElse(Integer.MIN_VALUE)); 373 s -> s.mapToInt(x -> x * 2).average().orElse(0)); 375 s -> s.mapToLong(x -> x * 2).average().orElse(0)); 377 s -> s.mapToDouble(x -> x * 2).average().orElse(0)); 392 s -> s.mapToInt(x -> x * 2).average().orElse(0));
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 1502 .orElse(zone) : in localizedBy()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandles.java | 4524 final Class<?> loopReturnType = cstream.findFirst().orElse(void.class); in loop() 4597 reduce((p, q) -> p.size() >= q.size() ? p : q).orElse(empty); in longestParameterList() 4603 return lists.stream().reduce((p, q) -> p.size() >= q.size() ? p : q).orElse(empty); in longestParameterList()
|
/libcore/api/ |
D | current.txt | 14155 method public T orElse(T); 14170 method public double orElse(double); 14185 method public int orElse(int); 14200 method public long orElse(long);
|