/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IntUniqOpTest.java | 47 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()
|
D | IntSliceOpTest.java | 61 assertCountSum(IntStream.range(0, 0).skip(0).boxed(), 0, 0); in testSkip() 62 assertCountSum(IntStream.range(0, 0).skip(4).boxed(), 0, 0); in testSkip() 63 assertCountSum(IntStream.range(1, 5).skip(4).boxed(), 0, 0); in testSkip() 64 assertCountSum(IntStream.range(1, 5).skip(2).boxed(), 2, 7); in testSkip() 65 assertCountSum(IntStream.range(1, 5).skip(0).boxed(), 4, 10); in testSkip() 67 assertCountSum(IntStream.range(0, 0).parallel().skip(0).boxed(), 0, 0); in testSkip() 68 assertCountSum(IntStream.range(0, 0).parallel().skip(4).boxed(), 0, 0); in testSkip() 69 assertCountSum(IntStream.range(1, 5).parallel().skip(4).boxed(), 0, 0); in testSkip() 70 assertCountSum(IntStream.range(1, 5).parallel().skip(2).boxed(), 2, 7); in testSkip() 71 assertCountSum(IntStream.range(1, 5).parallel().skip(0).boxed(), 4, 10); in testSkip() [all …]
|
D | ConcatOpTest.java | 59 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()
|
D | FlatMapOpTest.java | 65 = e -> IntStream.range(0, e).boxed(); 151 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10))); in testOpsX() 157 Stream.of(0).flatMap(i -> IntStream.range(0, 100).boxed()). in testOpsShortCircuit() 171 result = exerciseOps(data, s -> s.boxed().flatMapToInt(IntStream::of)); in testIntOps() 184 exerciseOps(data, s -> s.boxed().flatMapToInt(e -> IntStream.range(0, e))); in testIntOpsX() 185 exerciseOps(data, s -> s.boxed().flatMapToInt(e -> IntStream.range(0, e).limit(10))); in testIntOpsX() 211 result = exerciseOps(data, s -> s.boxed().flatMapToLong(LongStream::of)); in testLongOps() 248 result = exerciseOps(data, s -> s.boxed().flatMapToDouble(DoubleStream::of)); in testDoubleOps()
|
D | WhileOpStatefulTest.java | 266 () -> IntStream.range(0, DROP_SOURCE_SIZE).boxed()); in testDropWhileMulti() 268 () -> IntStream.range(0, DROP_SOURCE_SIZE).boxed().unordered()); in testDropWhileMulti() 270 () -> IntStream.range(0, DROP_SOURCE_SIZE).boxed() in testDropWhileMulti() 274 () -> IntStream.range(0, DROP_SOURCE_SIZE).boxed() in testDropWhileMulti()
|
D | MapMultiOpTest.java | 78 (e, sink) -> IntStream.range(0, e).boxed().forEach(sink); 80 (e, sink) -> IntStream.range(0, e).boxed().limit(10).forEach(sink); 203 …result = exerciseOps(data, s -> sf.apply(s).boxed().mapMultiToInt((i, sink) -> IntStream.of(i).for… in testIntOps() 216 … exerciseOps(data, s -> s.boxed().mapMultiToInt((e, sink) -> IntStream.range(0, e).forEach(sink))); in testIntOpsX() 217 …exerciseOps(data, s -> s.boxed().mapMultiToInt((e, sink) -> IntStream.range(0, e).limit(10).forEac… in testIntOpsX() 225 …exerciseOps(data, s -> delegateTo(s).boxed().mapMultiToInt((e, sink) -> IntStream.range(0, e).forE… in testDefaultIntOpsX() 226 …exerciseOps(data, s -> delegateTo(s).boxed().mapMultiToInt((e, sink) -> IntStream.range(0, e).limi… in testDefaultIntOpsX() 257 …result = exerciseOps(data, s -> sf.apply(s).boxed().mapMultiToDouble((i, sink) -> DoubleStream.of(… in testDoubleOps() 305 …result = exerciseOps(data, s -> sf.apply(s).boxed().mapMultiToLong((i, sink) -> LongStream.of(i).f… in testLongOps()
|
D | LongPrimitiveOpsTests.java | 86 List<Long> l = LongStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox() 97 assertTrue(LongStream.range(1, 10).boxed().spliterator() in testFlags() 99 assertFalse(LongStream.of(1, 10).boxed().spliterator() in testFlags() 101 assertFalse(LongStream.of(1, 10).boxed().spliterator() in testFlags()
|
D | IntPrimitiveOpsTests.java | 86 List<Integer> l = IntStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox() 97 assertTrue(IntStream.range(1, 10).boxed().spliterator() in testFlags() 99 assertFalse(IntStream.of(1, 10).boxed().spliterator() in testFlags() 101 assertFalse(IntStream.of(1, 10).boxed().spliterator() in testFlags()
|
D | StreamBuilderTest.java | 101 IntStream.range(0, size).boxed().forEach(sb); in testAfterBuilding() 114 IntStream.range(0, s).boxed().forEach(sb); in testStreamBuilder() 120 IntStream.range(0, s).boxed().forEach(i -> { in testStreamBuilder() 134 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder() 139 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder()
|
D | DoublePrimitiveOpsTests.java | 54 assertTrue(LongStream.range(1, 10).asDoubleStream().boxed().spliterator() in testFlags() 56 assertFalse(DoubleStream.of(1, 10).boxed().spliterator() in testFlags()
|
D | MapOpTest.java | 110 exerciseOps(data, s -> s.boxed()); in testIntOps() 125 exerciseOps(data, s -> s.boxed()); in testLongOps() 139 exerciseOps(data, s -> s.boxed()); in testDoubleOps()
|
D | ExplodeOpTest.java | 59 = e -> IntStream.range(0, e).boxed(); 87 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10))); in testOps()
|
D | InfiniteStreamWithLimitOpTest.java | 146 () -> LongStream.range(l, u).boxed()); 235 stream(s -> fs.apply(s.filter(i -> true).unordered().boxed())). 316 stream(s -> fs.apply(s.unordered().boxed())).
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleAccessorsTest.java | 542 Boolean boxed = Boolean.valueOf(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 = Byte.valueOf(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/ |
D | SliceSpliteratorTest.java | 74 … 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()
|
D | SpinedBufferTest.java | 47 .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/ |
D | Node.java | 276 T[] boxed = generator.apply((int) count()); in asArray() local 277 copyInto(boxed, 0); in asArray() 278 return boxed; in asArray() 350 default void copyInto(Integer[] boxed, int offset) { in copyInto() argument 356 boxed[offset + i] = array[i]; in copyInto() 427 default void copyInto(Long[] boxed, int offset) { in copyInto() argument 433 boxed[offset + i] = array[i]; in copyInto() 506 default void copyInto(Double[] boxed, int offset) { in copyInto() argument 512 boxed[offset + i] = array[i]; in copyInto()
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 94 … ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 3); in testForCompenstation() 96 … ds.get().boxed().collect(Collectors.averagingDouble(d -> d)),3); in testForCompenstation() 140 …failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.summingDouble(d -> … in testNonfiniteSum() 141 …failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.averagingDouble(d -… in testNonfiniteSum()
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomStreamTest.java | 133 … testRandomResultSupplierConcurrently(() -> tlr.ints().limit(SIZE).boxed().collect(toList())); in testThreadLocalIntStream() 139 … testRandomResultSupplierConcurrently(() -> tlr.longs().limit(SIZE).boxed().collect(toList())); in testThreadLocalLongStream() 145 … testRandomResultSupplierConcurrently(() -> tlr.doubles().limit(SIZE).boxed().collect(toList())); in testThreadLocalDoubleStream()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | MapBinToFromTreeTest.java | 93 Collection<Integer> expected = IntStream.range(0, s).boxed().collect(c); in testPutThenTraverse() 118 Collection<Integer> expected = IntStream.range(i + 1, SIZE).boxed().collect(c); in testRemoveThenTraverse() 159 Collection<Integer> expected = IntStream.rangeClosed(0, i).boxed().collect(c); in testUntreeifyOnResizeWithTraverse()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalLongTest.java | 127 var elements = OptionalLong.of(42).stream().boxed().toList(); in test_stream_nonEmpty() 133 var elements = OptionalLong.empty().stream().boxed().toList(); in test_stream_empty()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 2248 Object boxed; in adaptArgument() local 2251 boxed = Boolean.valueOf(reader.nextBoolean()); in adaptArgument() 2254 boxed = Byte.valueOf(reader.nextByte()); in adaptArgument() 2257 boxed = Short.valueOf(reader.nextShort()); in adaptArgument() 2260 boxed = Character.valueOf(reader.nextChar()); in adaptArgument() 2263 boxed = Integer.valueOf(reader.nextInt()); in adaptArgument() 2266 boxed = Long.valueOf(reader.nextLong()); in adaptArgument() 2269 boxed = Float.valueOf(reader.nextFloat()); in adaptArgument() 2272 boxed = Double.valueOf(reader.nextDouble()); in adaptArgument() 2275 boxed = null; in adaptArgument() [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 548 public Stream<Integer> boxed() { in boxed() method in DefaultMethodStreams.DefaultMethodIntStream 549 return s.boxed(); in boxed() 749 public Stream<Long> boxed() { in boxed() method in DefaultMethodStreams.DefaultMethodLongStream 750 return s.boxed(); in boxed() 942 public Stream<Double> boxed() { in boxed() method in DefaultMethodStreams.DefaultMethodDoubleStream 943 return s.boxed(); in boxed()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | AsList.java | 90 { IntStream.range(0, 100).boxed().toArray() } in arrays()
|
/libcore/ojluni/src/test/java/util/HashMap/ |
D | WhiteBoxResizeTest.java | 114 map.putAll(IntStream.range(0, 64).boxed().collect(toMap(i -> i, i -> i))); in capacityTestDefaultConstructor()
|