Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntUniqOpTest.java47 assertCountSum(IntStream.generate(() -> 0).limit(10).distinct().boxed(), 1, 0); in testUniqOp()
48 assertCountSum(IntStream.generate(() -> 1).limit(10).distinct().boxed(), 1, 1); in testUniqOp()
49 assertCountSum(IntStream.range(0, 0).distinct().boxed(), 0, 0); in testUniqOp()
50 assertCountSum(IntStream.range(1, 11).distinct().boxed(), 10, 55); in testUniqOp()
51 assertCountSum(IntStream.range(1, 11).distinct().boxed(), 10, 55); in testUniqOp()
56 Collection<Integer> result = exerciseOps(data, s -> s.distinct().boxed()); in testOp()
69 stream(s -> s.sorted().distinct().boxed()). in testOpSorted()
DIntSliceOpTest.java59 assertCountSum(IntStream.range(0, 0).skip(0).boxed(), 0, 0); in testSkip()
60 assertCountSum(IntStream.range(0, 0).skip(4).boxed(), 0, 0); in testSkip()
61 assertCountSum(IntStream.range(1, 5).skip(4).boxed(), 0, 0); in testSkip()
62 assertCountSum(IntStream.range(1, 5).skip(2).boxed(), 2, 7); in testSkip()
63 assertCountSum(IntStream.range(1, 5).skip(0).boxed(), 4, 10); in testSkip()
65 assertCountSum(IntStream.range(0, 0).parallel().skip(0).boxed(), 0, 0); in testSkip()
66 assertCountSum(IntStream.range(0, 0).parallel().skip(4).boxed(), 0, 0); in testSkip()
67 assertCountSum(IntStream.range(1, 5).parallel().skip(4).boxed(), 0, 0); in testSkip()
68 assertCountSum(IntStream.range(1, 5).parallel().skip(2).boxed(), 2, 7); in testSkip()
69 assertCountSum(IntStream.range(1, 5).parallel().skip(0).boxed(), 4, 10); in testSkip()
[all …]
DConcatOpTest.java59 LongStream.range(0, Long.MAX_VALUE / 2).boxed(), in testSize()
60 LongStream.range(0, Long.MAX_VALUE / 2).boxed())); in testSize()
63 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize()
64 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize()
67 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize()
72 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize()
DStreamBuilderTest.java94 IntStream.range(0, size).boxed().forEach(sb); in testAfterBuilding()
106 IntStream.range(0, s).boxed().forEach(sb); in testStreamBuilder()
112 IntStream.range(0, s).boxed().forEach(i -> { in testStreamBuilder()
126 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder()
131 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder()
DMapOpTest.java106 exerciseOps(data, s -> s.boxed()); in testIntOps()
120 exerciseOps(data, s -> s.boxed()); in testLongOps()
133 exerciseOps(data, s -> s.boxed()); in testDoubleOps()
DExplodeOpTest.java56 = e -> IntStream.range(0, e).boxed();
84 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10))); in testOps()
DInfiniteStreamWithLimitOpTest.java143 () -> LongStream.range(l, u).boxed());
232 stream(s -> fs.apply(s.filter(i -> true).unordered().boxed())).
313 stream(s -> fs.apply(s.unordered().boxed())).
DLongPrimitiveOpsTests.java78 List<Long> l = LongStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
DIntPrimitiveOpsTests.java78 List<Integer> l = IntStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
DDistinctOpTest.java75 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
DSliceOpTest.java233 List<Integer> list = IntStream.range(0, 100).boxed().collect(Collectors.toList()); in testSkipLimitOpsWithNonSplittingSpliterator()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleAccessorsTest.java542 Boolean boxed = new Boolean(b); in testBooleanSettersAndGetters() local
544 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.IPUT); in testBooleanSettersAndGetters() local
546 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.IGET); in testBooleanSettersAndGetters() local
549 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.SPUT); in testBooleanSettersAndGetters() local
551 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.SGET); in testBooleanSettersAndGetters() local
562 Byte boxed = new Byte(b); in testByteSettersAndGetters() local
564 valueHolder, PrimitiveType.Byte, boxed, AccessorType.IPUT); in testByteSettersAndGetters() local
566 valueHolder, PrimitiveType.Byte, boxed, AccessorType.IGET); in testByteSettersAndGetters() local
569 valueHolder, PrimitiveType.Byte, boxed, AccessorType.SPUT); in testByteSettersAndGetters() local
571 valueHolder, PrimitiveType.Byte, boxed, AccessorType.SGET); in testByteSettersAndGetters() local
[all …]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSliceSpliteratorTest.java74 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
87 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
100 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
113 …final Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toLi… in sliceSpliteratorDataProvider()
129 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
143 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
157 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
171 …final Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toLi… in sliceSpliteratorDataProvider()
DSpinedBufferTest.java47 .boxed()
68 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
72 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
76 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
80 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
111 .boxed() in testLastSplit()
186 .boxed() in testIntLastSplit()
261 .boxed() in testLongLastSplit()
337 .boxed() in testLongLastSplit()
/libcore/ojluni/src/main/java/java/util/stream/
DNode.java272 T[] boxed = generator.apply((int) count()); in asArray() local
273 copyInto(boxed, 0); in asArray()
274 return boxed; in asArray()
346 default void copyInto(Integer[] boxed, int offset) { in copyInto() argument
352 boxed[offset + i] = array[i]; in copyInto()
419 default void copyInto(Long[] boxed, int offset) { in copyInto() argument
425 boxed[offset + i] = array[i]; in copyInto()
494 default void copyInto(Double[] boxed, int offset) { in copyInto() argument
500 boxed[offset + i] = array[i]; in copyInto()
DDoubleStream.java704 Stream<Double> boxed(); in boxed() method
DIntStream.java671 Stream<Integer> boxed(); in boxed() method
DIntPipeline.java228 public final Stream<Integer> boxed() {
414 return boxed().distinct().mapToInt(i -> i);
DLongPipeline.java209 public final Stream<Long> boxed() {
395 return boxed().distinct().mapToLong(i -> (long) i);
DDoublePipeline.java191 public final Stream<Double> boxed() { in boxed() method in DoublePipeline
379 return boxed().distinct().mapToDouble(i -> (double) i);
DLongStream.java664 Stream<Long> boxed(); in boxed() method
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java92 … ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 3); in testForCompenstation()
94 … ds.get().boxed().collect(Collectors.averagingDouble(d -> d)),3); in testForCompenstation()
138 …failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.summingDouble(d -> … in testNonfiniteSum()
139 …failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.averagingDouble(d -… in testNonfiniteSum()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java2252 Object boxed = null; in box() local
2254 boxed = Boolean.valueOf(reader.nextBoolean()); in box()
2256 boxed = Byte.valueOf(reader.nextByte()); in box()
2258 boxed = Character.valueOf(reader.nextChar()); in box()
2260 boxed = Short.valueOf(reader.nextShort()); in box()
2262 boxed = Integer.valueOf(reader.nextInt()); in box()
2264 boxed = Long.valueOf(reader.nextLong()); in box()
2266 boxed = Float.valueOf(reader.nextFloat()); in box()
2268 boxed = Double.valueOf(reader.nextDouble()); in box()
2272 writer.putNextReference(to.cast(boxed), to); in box()
/libcore/luni/src/test/java/libcore/java/util/
DArraysTest.java596 .boxed() in streamInt()
683 .boxed() in streamLong()
770 .boxed() in streamDouble()
/libcore/api/
Dcurrent.txt16681 method public java.util.stream.Stream<java.lang.Double> boxed();
16731 method public java.util.stream.Stream<java.lang.Integer> boxed();
16782 method public java.util.stream.Stream<java.lang.Long> boxed();