/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | StreamReuseTest.java | 177 (IntStream s) -> s.mapToObj(i -> i), (IntStream s) -> s.mapToObj(i -> i), in testTwoStreams() 181 IntStream::distinct, (IntStream s) -> s.mapToObj(i -> i), in testTwoStreams() 185 (IntStream s) -> s.mapToObj(i -> i), IntStream::distinct, in testTwoStreams() 205 IntStream::sum, (IntStream s) -> s.mapToObj(i -> i), in testTerminalStream() 209 (IntStream s) -> s.mapToObj(i -> i), IntStream::sum, in testTerminalStream() 245 IntStream::iterator, (IntStream s) -> s.mapToObj(i -> i), in testStreamIterator() 249 (IntStream s) -> s.mapToObj(i -> i), IntStream::iterator, in testStreamIterator() 267 … (LongStream s) -> s.mapToObj(i -> i), (LongStream s) -> s.mapToObj(i -> i), in testTwoStreams() 271 LongStream::distinct, (LongStream s) -> s.mapToObj(i -> i), in testTwoStreams() 275 (LongStream s) -> s.mapToObj(i -> i), LongStream::distinct, in testTwoStreams() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | MapOpTest.java | 73 .mapToObj(i -> i + 1) in testEveryMapShape() 75 .mapToObj(i -> i + 1) in testEveryMapShape() 77 .mapToObj(i -> i + 1) in testEveryMapShape() 83 .mapToObj(i -> i), in testEveryMapShape() 105 exerciseOps(data, s -> s.mapToObj(i -> i)); in testIntOps() 111 exerciseOps(data, s -> s.mapToObj(Integer::toString)); in testIntOps() 121 exerciseOps(data, s -> s.mapToObj(i -> i)); in testLongOps() 126 exerciseOps(data, s -> s.mapToObj(e -> Long.toString(e))); in testLongOps() 136 exerciseOps(data, s -> s.mapToObj(i -> i)); in testDoubleOps() 140 exerciseOps(data, s -> s.mapToObj(e -> Double.toString(e))); in testDoubleOps()
|
D | WhileOpTest.java | 307 ms.put("Int", s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e)); 308 ms.put("Long", s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e)); 309 ms.put("Double", s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e)); 311 … defaults", s -> mInt.apply(DefaultMethodStreams.delegateTo(s.mapToInt(e -> e))).mapToObj(e -> e)); 312 …s", s -> mLong.apply(DefaultMethodStreams.delegateTo(s.mapToLong(e -> e))).mapToObj(e -> (int) e)); 313 …s -> mDouble.apply(DefaultMethodStreams.delegateTo(s.mapToDouble(e -> e))).mapToObj(e -> (int) e)); 388 mapToObj(e -> e), 392 mapToObj(e -> (int) e), 396 mapToObj(e -> (int) e)
|
D | CountLargeTest.java | 50 .mapToObj(e -> null).count(); in testRefLarge() 56 .mapToObj(e -> null).filter(e -> true).count(); in testRefLarge()
|
D | SliceOpTest.java | 301 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); 302 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); 303 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e);
|
D | DistinctOpTest.java | 179 .mapToObj(i -> new Integer(1000)) // explicit construction in testStable()
|
/libcore/ojluni/src/test/java/lang/String/ |
D | Strip.java | 105 .mapToObj(c -> (Integer)c) in report() 110 .mapToObj(c -> (Integer)c) in report()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | PrimeTest.java | 107 .mapToObj(p -> BigInteger.valueOf(p + 2)) in getPrimes() 153 .ints(NUM_NON_PRIMES, 2, maxPrime).mapToObj(BigInteger::valueOf)
|
D | BigIntegerTest.java | 310 ints.mapToObj(BigInteger::valueOf).map(f).collect(Collectors.toList()); in squareRoot() 314 longs.mapToObj(BigInteger::valueOf).map(f).collect(Collectors.toList()); in squareRoot() 318 … doubles.mapToObj(x -> BigDecimal.valueOf(x).toBigInteger()).map(f).collect(Collectors.toList()); in squareRoot() 346 bits.mapToObj(BigInteger::valueOf).map(g).collect(Collectors.toList()); in squareRootAndRemainder()
|
/libcore/ojluni/src/test/java/util/HashMap/ |
D | PutNullKey.java | 86 .mapToObj(CollidingHash::new) in main()
|
D | ToArray.java | 156 checkToArray("Collisions", LongStream.range(0, 100).mapToObj(x -> x | (x << 32)) in checkSet()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 408 public <U> Stream<U> mapToObj(IntFunction<? extends U> mapper) { in mapToObj() method in DefaultMethodStreams.DefaultMethodIntStream 409 return s.mapToObj(mapper); in mapToObj() 619 public <U> Stream<U> mapToObj(LongFunction<? extends U> mapper) { in mapToObj() method in DefaultMethodStreams.DefaultMethodLongStream 620 return s.mapToObj(mapper); in mapToObj() 812 public <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper) { in mapToObj() method in DefaultMethodStreams.DefaultMethodDoubleStream 813 return s.mapToObj(mapper); in mapToObj()
|
D | OpTestCase.java | 137 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); in exerciseOpsInt() 138 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 139 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 178 m.put("Int " + desc, s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e)); in exerciseTerminalOpsInt() 179 m.put("Long " + desc, s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt() 180 m.put("Double " + desc, s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | IntPipeline.java | 181 private <U> Stream<U> mapToObj(IntFunction<? extends U> mapper, int opFlags) { in mapToObj() method in IntPipeline 243 return mapToObj(Integer::valueOf, 0); 265 public final <U> Stream<U> mapToObj(IntFunction<? extends U> mapper) { 267 return mapToObj(mapper, StreamOpFlag.NOT_SORTED | StreamOpFlag.NOT_DISTINCT);
|
D | LongPipeline.java | 178 private <U> Stream<U> mapToObj(LongFunction<? extends U> mapper, int opFlags) { in mapToObj() method in LongPipeline 225 return mapToObj(Long::valueOf, 0); 247 public final <U> Stream<U> mapToObj(LongFunction<? extends U> mapper) { 249 return mapToObj(mapper, StreamOpFlag.NOT_SORTED | StreamOpFlag.NOT_DISTINCT);
|
D | DoublePipeline.java | 177 private <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper, int opFlags) { in mapToObj() method in DoublePipeline 208 return mapToObj(Double::valueOf, 0); 230 public final <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper) { 232 return mapToObj(mapper, StreamOpFlag.NOT_SORTED | StreamOpFlag.NOT_DISTINCT);
|
D | DoubleStream.java | 116 <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper); in mapToObj() method
|
D | IntStream.java | 117 <U> Stream<U> mapToObj(IntFunction<? extends U> mapper); in mapToObj() method
|
D | LongStream.java | 117 <U> Stream<U> mapToObj(LongFunction<? extends U> mapper); in mapToObj() method
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 136 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); in exerciseOpsInt() 137 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 138 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 177 m.put("Int " + desc, s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e)); in exerciseTerminalOpsInt() 178 m.put("Long " + desc, s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt() 179 m.put("Double " + desc, s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt()
|
/libcore/luni/src/test/java/libcore/highmemorytest/java/text/ |
D | DateFormatTest.java | 92 .mapToObj(c -> (char)c)
|
/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | DoubleStream.annotated.java | 35 public <U> java.util.stream.Stream<U> mapToObj(java.util.function.DoubleFunction<? extends U> mappe… in mapToObj() method
|
D | IntStream.annotated.java | 35 public <U> java.util.stream.Stream<U> mapToObj(java.util.function.IntFunction<? extends U> mapper); in mapToObj() method
|
D | LongStream.annotated.java | 35 public <U> java.util.stream.Stream<U> mapToObj(java.util.function.LongFunction<? extends U> mapper); in mapToObj() method
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 1732 return LongStream.range(start, end).mapToObj(LocalDate::ofEpochDay); in datesUntil() 1774 return LongStream.rangeClosed(0, steps).mapToObj( in datesUntil() 1794 return LongStream.rangeClosed(0, steps).mapToObj( in datesUntil()
|