Home
last modified time | relevance | path

Searched refs:mapToObj (Results 1 – 25 of 31) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DStreamReuseTest.java177 (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/
DMapOpTest.java73 .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()
DWhileOpTest.java307 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)
DCountLargeTest.java50 .mapToObj(e -> null).count(); in testRefLarge()
56 .mapToObj(e -> null).filter(e -> true).count(); in testRefLarge()
DSliceOpTest.java301 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);
DDistinctOpTest.java179 .mapToObj(i -> new Integer(1000)) // explicit construction in testStable()
/libcore/ojluni/src/test/java/lang/String/
DStrip.java105 .mapToObj(c -> (Integer)c) in report()
110 .mapToObj(c -> (Integer)c) in report()
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimeTest.java107 .mapToObj(p -> BigInteger.valueOf(p + 2)) in getPrimes()
153 .ints(NUM_NON_PRIMES, 2, maxPrime).mapToObj(BigInteger::valueOf)
DBigIntegerTest.java310 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/
DPutNullKey.java86 .mapToObj(CollidingHash::new) in main()
DToArray.java156 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/
DDefaultMethodStreams.java408 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()
DOpTestCase.java137 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/
DIntPipeline.java181 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);
DLongPipeline.java178 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);
DDoublePipeline.java177 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);
DDoubleStream.java116 <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper); in mapToObj() method
DIntStream.java117 <U> Stream<U> mapToObj(IntFunction<? extends U> mapper); in mapToObj() method
DLongStream.java117 <U> Stream<U> mapToObj(LongFunction<? extends U> mapper); in mapToObj() method
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java136 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/
DDateFormatTest.java92 .mapToObj(c -> (char)c)
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DDoubleStream.annotated.java35 public <U> java.util.stream.Stream<U> mapToObj(java.util.function.DoubleFunction<? extends U> mappe… in mapToObj() method
DIntStream.annotated.java35 public <U> java.util.stream.Stream<U> mapToObj(java.util.function.IntFunction<? extends U> mapper); in mapToObj() method
DLongStream.annotated.java35 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/
DLocalDate.java1732 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()

12