/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | LongNodeTest.java | 90 private Node.OfLong fill(long[] array, Node.Builder.OfLong nb) { in fill() 98 private Node.OfLong degenerateTree(PrimitiveIterator.OfLong it) { in degenerateTree() 105 return new Nodes.ConcNode.OfLong(Nodes.node(new long[] {i}), degenerateTree(it)); in degenerateTree() 112 private Node.OfLong tree(List<Long> l, Function<List<Long>, Node.OfLong> m) { in tree() 117 return new Nodes.ConcNode.OfLong( in tree() 124 public void testAsArray(long[] array, Node.OfLong n) { in testAsArray() 129 public void testFlattenAsArray(long[] array, Node.OfLong n) { in testFlattenAsArray() 134 public void testCopyTo(long[] array, Node.OfLong n) { in testCopyTo() 142 public void testForEach(long[] array, Node.OfLong n) { in testForEach() 152 public void testStreams(long[] array, Node.OfLong n) { in testStreams() [all …]
|
D | SpinedBufferTest.java | 228 SpinedBuffer.OfLong sb = new SpinedBuffer.OfLong(); in createLongSpinedBuffer() 238 public void testLongSpliterator(long[] array, SpinedBuffer.OfLong sb) { in testLongSpliterator() 246 public void testLongLastSplit(long[] array, SpinedBuffer.OfLong sb) { in testLongLastSplit() 247 Spliterator.OfLong spliterator = sb.spliterator(); in testLongLastSplit() 248 Spliterator.OfLong split = spliterator.trySplit(); in testLongLastSplit() 271 SpinedBuffer.OfLong sb = new SpinedBuffer.OfLong(); in testLongSpinedBuffer() 276 PrimitiveIterator.OfLong it = sb.iterator(); in testLongSpinedBuffer()
|
D | SliceSpliteratorTest.java | 103 … Spliterator.OfLong s = Arrays.spliterator(source.stream().mapToLong(i->i).toArray()); in sliceSpliteratorDataProvider() 105 return new StreamSpliterators.SliceSpliterator.OfLong(s, skip, limit); in sliceSpliteratorDataProvider() 161 … Spliterator.OfLong s = Arrays.spliterator(source.stream().mapToLong(i->i).toArray()); in sliceSpliteratorDataProvider() 163 return new StreamSpliterators.UnorderedSliceSpliterator.OfLong(s, skip, limit); in sliceSpliteratorDataProvider()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 380 extends AbstractWrappingSpliterator<P_IN, Long, SpinedBuffer.OfLong> 381 implements Spliterator.OfLong { 402 SpinedBuffer.OfLong b = new SpinedBuffer.OfLong(); in initPartialTraversalState() 404 bufferSink = ph.wrapSink((Sink.OfLong) b::accept); in initPartialTraversalState() 409 public Spliterator.OfLong trySplit() { in trySplit() 410 return (Spliterator.OfLong) super.trySplit(); in trySplit() 428 ph.wrapAndCopyInto((Sink.OfLong) consumer::accept, spliterator); in forEachRemaining() 586 static final class OfLong class in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 587 extends OfPrimitive<Long, LongConsumer, Spliterator.OfLong> 588 implements Spliterator.OfLong { [all …]
|
D | Nodes.java | 69 private static final Node.OfLong EMPTY_LONG_NODE = new EmptyNode.OfLong(); 120 return (Node<T>) new ConcNode.OfLong((Node.OfLong) left, (Node.OfLong) right); in conc() 229 static Node.OfLong node(final long[] array) { in node() 241 static Node.Builder.OfLong longBuilder(long exactSizeIfKnown) { in longBuilder() 252 static Node.Builder.OfLong longBuilder() { in longBuilder() 392 public static <P_IN> Node.OfLong collectLong(PipelineHelper<Long> helper, in collectLong() 400 new SizedCollectorTask.OfLong<>(spliterator, helper, array).invoke(); in collectLong() 404 Node.OfLong node = new CollectorTask.OfLong<>(helper, spliterator).invoke(); in collectLong() 516 public static Node.OfLong flattenLong(Node.OfLong node) { in flattenLong() 522 new ToArrayTask.OfLong(node, array, 0).invoke(); in flattenLong() [all …]
|
D | Node.java | 211 interface OfLong extends Node.Builder<Long>, Sink.OfLong { interface 213 Node.OfLong build(); in build() 388 interface OfLong extends OfPrimitive<Long, LongConsumer, long[], Spliterator.OfLong, OfLong> { interface 430 default Node.OfLong truncate(long from, long to, IntFunction<Long[]> generator) { in truncate() 434 Spliterator.OfLong spliterator = spliterator(); in truncate() 435 Node.Builder.OfLong nodeBuilder = Nodes.longBuilder(size); in truncate()
|
D | LongStream.java | 673 PrimitiveIterator.OfLong iterator(); in iterator() 676 Spliterator.OfLong spliterator(); in spliterator() 736 final PrimitiveIterator.OfLong iterator = new PrimitiveIterator.OfLong() { in iterate() 767 … new StreamSpliterators.InfiniteSupplyingSpliterator.OfLong(Long.MAX_VALUE, s), false); in generate() 858 Spliterator.OfLong split = new Streams.ConcatSpliterator.OfLong( in concat()
|
D | Streams.java | 185 static final class RangeLongSpliterator implements Spliterator.OfLong { 261 public Spliterator.OfLong trySplit() { in trySplit() 517 extends AbstractStreamBuilderImpl<Long, Spliterator.OfLong> 518 implements LongStream.Builder, Spliterator.OfLong { 525 SpinedBuffer.OfLong buffer; 552 buffer = new SpinedBuffer.OfLong(); in accept() 823 static class OfLong class in Streams 824 extends ConcatSpliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong> 825 implements Spliterator.OfLong { 826 OfLong(Spliterator.OfLong aSpliterator, Spliterator.OfLong bSpliterator) { in OfLong() method in Streams.OfLong
|
D | LongPipeline.java | 118 private static Spliterator.OfLong adapt(Spliterator<Long> s) { in adapt() 119 if (s instanceof Spliterator.OfLong) { in adapt() 120 return (Spliterator.OfLong) s; in adapt() 158 … public final Spliterator.OfLong lazySpliterator(Supplier<? extends Spliterator<Long>> supplier) { in lazySpliterator() 159 …return new StreamSpliterators.DelegatingSpliterator.OfLong((Supplier<Spliterator.OfLong>) supplier… in lazySpliterator() 165 Spliterator.OfLong spl = adapt(spliterator); in forEachWithCancel() 180 public final PrimitiveIterator.OfLong iterator() { in iterator() 185 public final Spliterator.OfLong spliterator() { in spliterator() 501 return Nodes.flattenLong((Node.OfLong) evaluateToArrayNode(Long[]::new))
|
D | SliceOps.java | 90 .SliceSpliterator.OfLong((Spliterator.OfLong) s, skip, sliceFence); in sliceSpliterator() 352 Spliterator.OfLong unorderedSkipLimitSpliterator( 353 Spliterator.OfLong s, long skip, long limit, long sizeIfKnown) { 360 return new StreamSpliterators.UnorderedSliceSpliterator.OfLong(s, skip, limit); 369 return new StreamSpliterators.SliceSpliterator.OfLong( 370 (Spliterator.OfLong) helper.wrapSpliterator(spliterator), 375 (Spliterator.OfLong) helper.wrapSpliterator(spliterator), 399 Spliterator.OfLong s = unorderedSkipLimitSpliterator( 400 (Spliterator.OfLong) helper.wrapSpliterator(spliterator),
|
D | SortedOps.java | 83 return new OfLong(upstream); in makeLong() 206 private static final class OfLong extends LongPipeline.StatefulOp<Long> { class in SortedOps 207 OfLong(AbstractPipeline<?, Long, ?> upstream) { in OfLong() method in SortedOps.OfLong 232 Node.OfLong n = (Node.OfLong) helper.evaluate(spliterator, true, generator); in opEvaluateParallel() 567 private SpinedBuffer.OfLong b; 577 b = (size > 0) ? new SpinedBuffer.OfLong((int) size) : new SpinedBuffer.OfLong(); in begin()
|
D | StreamSupport.java | 204 public static LongStream longStream(Spliterator.OfLong spliterator, in longStream() 243 public static LongStream longStream(Supplier<? extends Spliterator.OfLong> supplier, in longStream()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | RangeTest.java | 206 TestData.OfLong longRangeData(long start, long end) { 210 TestData.OfLong longRangeClosedData(long start, long end) { in longRangeClosedData() 244 Spliterator.OfLong s = LongStream.range(Long.MIN_VALUE, Long.MAX_VALUE).spliterator(); in testLongLongRange() 249 Spliterator.OfLong s1 = s.trySplit(); in testLongLongRange() 253 Spliterator.OfLong s2 = s1.trySplit(); in testLongLongRange() 270 Spliterator.OfLong s = LongStream.range(start, end).spliterator(); in testLongLongRange() 275 Spliterator.OfLong s1 = s.trySplit(); in testLongLongRange() 294 … Spliterator.OfLong s = LongStream.rangeClosed(Long.MIN_VALUE, Long.MAX_VALUE).spliterator(); 299 Spliterator.OfLong s1 = s.trySplit(); 303 Spliterator.OfLong s2 = s1.trySplit(); [all …]
|
D | StreamSpliteratorTest.java | 159 …private static class OfLong extends ProxyNoExactSizeSpliterator<Long> implements Spliterator.OfLon… class in StreamSpliteratorTest.ProxyNoExactSizeSpliterator 160 final Spliterator.OfLong psp; 162 private OfLong(Spliterator.OfLong sp, boolean proxyEstimateSize) { in OfLong() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfLong 168 public Spliterator.OfLong trySplit() { in trySplit() 170 Spliterator.OfLong prefix = psp.trySplit(); in trySplit() 178 return Spliterator.OfLong.super.tryAdvance(consumer); in tryAdvance() 183 Spliterator.OfLong.super.forEachRemaining(consumer); in forEachRemaining() 457 … Spliterator.OfLong sp = intermediateOp.apply(LongStream.range(0, 1000)).spliterator(); in testLongSplitting() 458 …ProxyNoExactSizeSpliterator.OfLong psp = new ProxyNoExactSizeSpliterator.OfLong(sp, proxyEstimateS… in testLongSplitting() 478 public void testLongStreamSpliterators(String name, TestData.OfLong data) { [all …]
|
D | InfiniteStreamWithLimitOpTest.java | 156 private TestData.OfLong longs() { 160 private TestData.OfLong longRange(long l, long u) { 275 private Spliterator.OfLong proxyNotSubsized(Spliterator.OfLong s) { 295 return (Spliterator.OfLong) Proxy.newProxyInstance(this.getClass().getClassLoader(), 296 new Class[]{Spliterator.OfLong.class}, 300 private TestData.OfLong proxiedLongRange(long l, long u) { 382 TestData.OfLong generator = TestData.Factory.ofLongSupplier( 433 TestData.OfLong iterator = TestData.Factory.ofLongSupplier(
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 91 public static Spliterator.OfLong emptyLongSpliterator() { in emptyLongSpliterator() 95 private static final Spliterator.OfLong EMPTY_LONG_SPLITERATOR = 96 new EmptySpliterator.OfLong(); 266 public static Spliterator.OfLong spliterator(long[] array, in spliterator() 303 public static Spliterator.OfLong spliterator(long[] array, int fromIndex, int toIndex, in spliterator() 562 public static Spliterator.OfLong spliterator(PrimitiveIterator.OfLong iterator, in spliterator() 590 public static Spliterator.OfLong spliteratorUnknownSize(PrimitiveIterator.OfLong iterator, in spliteratorUnknownSize() 756 public static PrimitiveIterator.OfLong iterator(Spliterator.OfLong spliterator) { in iterator() 758 class Adapter implements PrimitiveIterator.OfLong, LongConsumer { in iterator() 873 private static final class OfLong class in Spliterators.EmptySpliterator [all …]
|
D | Spliterator.java | 708 public interface OfLong extends OfPrimitive<Long, LongConsumer, OfLong> { interface 711 OfLong trySplit(); in trySplit()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | TestData.java | 72 public interface OfLong extends TestData<Long, LongStream> { } interface 144 public static <T> OfLong ofArray(String name, long[] array) { in ofArray() 149 public static OfLong ofSpinedBuffer(String name, SpinedBuffer.OfLong buffer) { in ofSpinedBuffer() 153 SpinedBuffer.OfLong::spliterator, in ofSpinedBuffer() 157 public static OfLong ofLongSupplier(String name, Supplier<LongStream> supplier) { in ofLongSupplier() 165 public static OfLong ofNode(String name, Node.OfLong node) { in ofNode() 170 Node.OfLong::spliterator, in ofNode() 306 extends AbstractTestData<Long, LongStream, I, Spliterator.OfLong> 307 implements TestData.OfLong { 313 Function<I, Spliterator.OfLong> splitrFn, in LongTestData() [all …]
|
D | LongStreamTestDataProvider.java | 89 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong(); 110 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong(); 143 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfLong> s) { in splitDescr()
|
D | CollectorOps.java | 101 public static class OfLong extends TestParallelSizedOp<Long> { class in CollectorOps.TestParallelSizedOp 102 public OfLong() { in OfLong() method in CollectorOps.TestParallelSizedOp.OfLong
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | TestData.java | 73 public interface OfLong extends TestData<Long, LongStream> { } interface 145 public static <T> OfLong ofArray(String name, long[] array) { in ofArray() 150 public static OfLong ofSpinedBuffer(String name, SpinedBuffer.OfLong buffer) { in ofSpinedBuffer() 154 SpinedBuffer.OfLong::spliterator, in ofSpinedBuffer() 158 public static OfLong ofLongSupplier(String name, Supplier<LongStream> supplier) { in ofLongSupplier() 166 public static OfLong ofNode(String name, Node.OfLong node) { in ofNode() 171 Node.OfLong::spliterator, in ofNode() 307 extends AbstractTestData<Long, LongStream, I, Spliterator.OfLong> 308 implements TestData.OfLong { 314 Function<I, Spliterator.OfLong> splitrFn, in LongTestData() [all …]
|
D | LongStreamTestDataProvider.java | 93 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong(); 114 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong(); 147 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfLong> s) { in splitDescr()
|
D | CollectorOps.java | 102 public static class OfLong extends TestParallelSizedOp<Long> { class in CollectorOps.TestParallelSizedOp 103 public OfLong() { in OfLong() method in CollectorOps.TestParallelSizedOp.OfLong
|
D | LongStreamTestScenario.java | 73 … for (PrimitiveIterator.OfLong seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR() 82 … for (Spliterator.OfLong spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 123 … for (Spliterator.OfLong spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR() 149 Spliterator.OfLong sp = s.spliterator(); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 67 Spliterator.OfLong empty = Spliterators.emptyLongSpliterator(); in testEmptyLongSpliterator() 263 Spliterator.OfLong sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_longOffsetBasic() 290 Spliterator.OfLong longSp = Spliterators.spliterator(elements, 0); in test_spliterator_long() 303 Spliterator.OfLong split1 = longSp.trySplit(); in test_spliterator_long() 309 Spliterator.OfLong split2 = split1.trySplit(); in test_spliterator_long() 389 Spliterator.OfLong longSp = Spliterators.spliterator(longElements, 0); in test_primitive_spliterators_NPE() 539 private static class CannedLongPrimitiveIterator implements PrimitiveIterator.OfLong { 654 PrimitiveIterator.OfLong elements = new CannedLongPrimitiveIterator(data); in test_spliterator_longPrimitiveIterator() 655 Spliterator.OfLong longSp = Spliterators.spliterator(elements, 16 /* size */, 0); in test_spliterator_longPrimitiveIterator() 668 Spliterator.OfLong split1 = longSp.trySplit(); in test_spliterator_longPrimitiveIterator() [all …]
|