/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | IntNodeTest.java | 90 private Node.OfInt fill(int[] array, Node.Builder.OfInt nb) { in fill() 98 private Node.OfInt degenerateTree(PrimitiveIterator.OfInt it) { in degenerateTree() 105 return new Nodes.ConcNode.OfInt(Nodes.node(new int[] {i}), degenerateTree(it)); in degenerateTree() 112 private Node.OfInt tree(List<Integer> l, Function<List<Integer>, Node.OfInt> m) { in tree() 117 return new Nodes.ConcNode.OfInt( in tree() 124 public void testAsArray(int[] array, Node.OfInt n) { in testAsArray() 129 public void testFlattenAsArray(int[] array, Node.OfInt n) { in testFlattenAsArray() 134 public void testCopyTo(int[] array, Node.OfInt n) { in testCopyTo() 142 public void testForEach(int[] array, Node.OfInt n) { in testForEach() 152 public void testStreams(int[] array, Node.OfInt n) { in testStreams() [all …]
|
D | SpinedBufferTest.java | 153 SpinedBuffer.OfInt sb = new SpinedBuffer.OfInt(); in createIntSpinedBuffer() 163 public void testIntSpliterator(int[] array, SpinedBuffer.OfInt sb) { in testIntSpliterator() 171 public void testIntLastSplit(int[] array, SpinedBuffer.OfInt sb) { in testIntLastSplit() 172 Spliterator.OfInt spliterator = sb.spliterator(); in testIntLastSplit() 173 Spliterator.OfInt split = spliterator.trySplit(); in testIntLastSplit() 196 SpinedBuffer.OfInt sb = new SpinedBuffer.OfInt(); in testIntSpinedBuffer() 201 PrimitiveIterator.OfInt it = sb.iterator(); in testIntSpinedBuffer()
|
D | SliceSpliteratorTest.java | 90 … Spliterator.OfInt s = Arrays.spliterator(source.stream().mapToInt(i->i).toArray()); in sliceSpliteratorDataProvider() 92 return new StreamSpliterators.SliceSpliterator.OfInt(s, skip, limit); in sliceSpliteratorDataProvider() 147 … Spliterator.OfInt s = Arrays.spliterator(source.stream().mapToInt(i->i).toArray()); in sliceSpliteratorDataProvider() 149 return new StreamSpliterators.UnorderedSliceSpliterator.OfInt(s, skip, limit); in sliceSpliteratorDataProvider()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 322 extends AbstractWrappingSpliterator<P_IN, Integer, SpinedBuffer.OfInt> 323 implements Spliterator.OfInt { 344 SpinedBuffer.OfInt b = new SpinedBuffer.OfInt(); in initPartialTraversalState() 346 bufferSink = ph.wrapSink((Sink.OfInt) b::accept); in initPartialTraversalState() 351 public Spliterator.OfInt trySplit() { in trySplit() 352 return (Spliterator.OfInt) super.trySplit(); in trySplit() 370 ph.wrapAndCopyInto((Sink.OfInt) consumer::accept, spliterator); in forEachRemaining() 577 static final class OfInt class in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 578 extends OfPrimitive<Integer, IntConsumer, Spliterator.OfInt> 579 implements Spliterator.OfInt { [all …]
|
D | Nodes.java | 68 private static final Node.OfInt EMPTY_INT_NODE = new EmptyNode.OfInt(); 118 return (Node<T>) new ConcNode.OfInt((Node.OfInt) left, (Node.OfInt) right); in conc() 192 static Node.OfInt node(int[] array) { in node() 204 static Node.Builder.OfInt intBuilder(long exactSizeIfKnown) { in intBuilder() 215 static Node.Builder.OfInt intBuilder() { in intBuilder() 354 public static <P_IN> Node.OfInt collectInt(PipelineHelper<Integer> helper, in collectInt() 362 new SizedCollectorTask.OfInt<>(spliterator, helper, array).invoke(); in collectInt() 366 Node.OfInt node = new CollectorTask.OfInt<>(helper, spliterator).invoke(); in collectInt() 490 public static Node.OfInt flattenInt(Node.OfInt node) { in flattenInt() 496 new ToArrayTask.OfInt(node, array, 0).invoke(); in flattenInt() [all …]
|
D | IntStream.java | 680 PrimitiveIterator.OfInt iterator(); in iterator() 683 Spliterator.OfInt spliterator(); in spliterator() 743 final PrimitiveIterator.OfInt iterator = new PrimitiveIterator.OfInt() { in iterate() 774 … new StreamSpliterators.InfiniteSupplyingSpliterator.OfInt(Long.MAX_VALUE, s), false); in generate() 850 Spliterator.OfInt split = new Streams.ConcatSpliterator.OfInt( in concat()
|
D | Node.java | 203 interface OfInt extends Node.Builder<Integer>, Sink.OfInt { interface 205 Node.OfInt build(); in build() 315 interface OfInt extends OfPrimitive<Integer, IntConsumer, int[], Spliterator.OfInt, OfInt> { interface 357 default Node.OfInt truncate(long from, long to, IntFunction<Integer[]> generator) { in truncate() 361 Spliterator.OfInt spliterator = spliterator(); in truncate() 362 Node.Builder.OfInt nodeBuilder = Nodes.intBuilder(size); in truncate()
|
D | Streams.java | 61 static final class RangeIntSpliterator implements Spliterator.OfInt { 137 public Spliterator.OfInt trySplit() { in trySplit() 426 extends AbstractStreamBuilderImpl<Integer, Spliterator.OfInt> 427 implements IntStream.Builder, Spliterator.OfInt { 434 SpinedBuffer.OfInt buffer; 461 buffer = new SpinedBuffer.OfInt(); in accept() 815 static class OfInt class in Streams 816 extends ConcatSpliterator.OfPrimitive<Integer, IntConsumer, Spliterator.OfInt> 817 implements Spliterator.OfInt { 818 OfInt(Spliterator.OfInt aSpliterator, Spliterator.OfInt bSpliterator) { in OfInt() method in Streams.OfInt
|
D | IntPipeline.java | 119 private static Spliterator.OfInt adapt(Spliterator<Integer> s) { in adapt() 120 if (s instanceof Spliterator.OfInt) { in adapt() 121 return (Spliterator.OfInt) s; in adapt() 160 …public final Spliterator.OfInt lazySpliterator(Supplier<? extends Spliterator<Integer>> supplier) { in lazySpliterator() 161 … return new StreamSpliterators.DelegatingSpliterator.OfInt((Supplier<Spliterator.OfInt>) supplier); in lazySpliterator() 167 Spliterator.OfInt spl = adapt(spliterator); in forEachWithCancel() 183 public final PrimitiveIterator.OfInt iterator() { in iterator() 188 public final Spliterator.OfInt spliterator() { in spliterator() 519 return Nodes.flattenInt((Node.OfInt) evaluateToArrayNode(Integer[]::new))
|
D | SliceOps.java | 87 .SliceSpliterator.OfInt((Spliterator.OfInt) s, skip, sliceFence); in sliceSpliterator() 240 Spliterator.OfInt unorderedSkipLimitSpliterator( 241 Spliterator.OfInt s, long skip, long limit, long sizeIfKnown) { 248 return new StreamSpliterators.UnorderedSliceSpliterator.OfInt(s, skip, limit); 257 return new StreamSpliterators.SliceSpliterator.OfInt( 258 (Spliterator.OfInt) helper.wrapSpliterator(spliterator), 263 (Spliterator.OfInt) helper.wrapSpliterator(spliterator), 287 Spliterator.OfInt s = unorderedSkipLimitSpliterator( 288 (Spliterator.OfInt) helper.wrapSpliterator(spliterator),
|
D | SortedOps.java | 73 return new OfInt(upstream); in makeInt() 167 private static final class OfInt extends IntPipeline.StatefulOp<Integer> { class in SortedOps 168 OfInt(AbstractPipeline<?, Integer, ?> upstream) { in OfInt() method in SortedOps.OfInt 193 Node.OfInt n = (Node.OfInt) helper.evaluate(spliterator, true, generator); in opEvaluateParallel() 469 private SpinedBuffer.OfInt b; 479 b = (size > 0) ? new SpinedBuffer.OfInt((int) size) : new SpinedBuffer.OfInt(); in begin()
|
D | StreamSupport.java | 137 public static IntStream intStream(Spliterator.OfInt spliterator, boolean parallel) { in intStream() 175 public static IntStream intStream(Supplier<? extends Spliterator.OfInt> supplier, in intStream()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 75 public static Spliterator.OfInt emptyIntSpliterator() { in emptyIntSpliterator() 79 private static final Spliterator.OfInt EMPTY_INT_SPLITERATOR = 80 new EmptySpliterator.OfInt(); 204 public static Spliterator.OfInt spliterator(int[] array, in spliterator() 237 public static Spliterator.OfInt spliterator(int[] array, int fromIndex, int toIndex, in spliterator() 505 public static Spliterator.OfInt spliterator(PrimitiveIterator.OfInt iterator, in spliterator() 533 public static Spliterator.OfInt spliteratorUnknownSize(PrimitiveIterator.OfInt iterator, in spliteratorUnknownSize() 711 public static PrimitiveIterator.OfInt iterator(Spliterator.OfInt spliterator) { in iterator() 713 class Adapter implements PrimitiveIterator.OfInt, IntConsumer { in iterator() 867 private static final class OfInt class in Spliterators.EmptySpliterator [all …]
|
D | Spliterator.java | 644 public interface OfInt extends OfPrimitive<Integer, IntConsumer, OfInt> { interface 647 OfInt trySplit(); in trySplit()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | TestData.java | 70 public interface OfInt extends TestData<Integer, IntStream> { } interface 113 public static <T> OfInt ofArray(String name, int[] array) { in ofArray() 118 public static OfInt ofSpinedBuffer(String name, SpinedBuffer.OfInt buffer) { in ofSpinedBuffer() 122 SpinedBuffer.OfInt::spliterator, in ofSpinedBuffer() 126 public static OfInt ofIntSupplier(String name, Supplier<IntStream> supplier) { in ofIntSupplier() 134 public static OfInt ofNode(String name, Node.OfInt node) { in ofNode() 139 Node.OfInt::spliterator, in ofNode() 281 extends AbstractTestData<Integer, IntStream, I, Spliterator.OfInt> 282 implements TestData.OfInt { 288 Function<I, Spliterator.OfInt> splitrFn, in IntTestData() [all …]
|
D | IntStreamTestDataProvider.java | 89 SpinedBuffer.OfInt isl = new SpinedBuffer.OfInt(); 110 SpinedBuffer.OfInt isl = new SpinedBuffer.OfInt(); 143 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfInt> s) { in splitDescr()
|
D | CollectorOps.java | 95 public static class OfInt extends TestParallelSizedOp<Integer> { class in CollectorOps.TestParallelSizedOp 96 public OfInt() { in OfInt() method in CollectorOps.TestParallelSizedOp.OfInt
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | TestData.java | 71 public interface OfInt extends TestData<Integer, IntStream> { } interface 114 public static <T> OfInt ofArray(String name, int[] array) { in ofArray() 119 public static OfInt ofSpinedBuffer(String name, SpinedBuffer.OfInt buffer) { in ofSpinedBuffer() 123 SpinedBuffer.OfInt::spliterator, in ofSpinedBuffer() 127 public static OfInt ofIntSupplier(String name, Supplier<IntStream> supplier) { in ofIntSupplier() 135 public static OfInt ofNode(String name, Node.OfInt node) { in ofNode() 140 Node.OfInt::spliterator, in ofNode() 282 extends AbstractTestData<Integer, IntStream, I, Spliterator.OfInt> 283 implements TestData.OfInt { 289 Function<I, Spliterator.OfInt> splitrFn, in IntTestData() [all …]
|
D | IntStreamTestDataProvider.java | 93 SpinedBuffer.OfInt isl = new SpinedBuffer.OfInt(); 114 SpinedBuffer.OfInt isl = new SpinedBuffer.OfInt(); 147 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfInt> s) { in splitDescr()
|
D | CollectorOps.java | 96 public static class OfInt extends TestParallelSizedOp<Integer> { class in CollectorOps.TestParallelSizedOp 97 public OfInt() { in OfInt() method in CollectorOps.TestParallelSizedOp.OfInt
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamSpliteratorTest.java | 118 …private static class OfInt extends ProxyNoExactSizeSpliterator<Integer> implements Spliterator.OfI… class in StreamSpliteratorTest.ProxyNoExactSizeSpliterator 119 final Spliterator.OfInt psp; 121 private OfInt(Spliterator.OfInt sp, boolean proxyEstimateSize) { in OfInt() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfInt 127 public Spliterator.OfInt trySplit() { in trySplit() 129 Spliterator.OfInt prefix = psp.trySplit(); in trySplit() 137 return Spliterator.OfInt.super.tryAdvance(consumer); in tryAdvance() 142 Spliterator.OfInt.super.forEachRemaining(consumer); in forEachRemaining() 364 … Spliterator.OfInt sp = intermediateOp.apply(IntStream.range(0, 1000)).spliterator(); in testIntSplitting() 365 …ProxyNoExactSizeSpliterator.OfInt psp = new ProxyNoExactSizeSpliterator.OfInt(sp, proxyEstimateSiz… in testIntSplitting() 385 public void testIntStreamSpliterators(String name, TestData.OfInt data) { [all …]
|
D | IntUniqOpTest.java | 55 public void testOp(String name, TestData.OfInt data) { in testOp() 67 public void testOpSorted(String name, TestData.OfInt data) { in testOpSorted()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBufferSpliterator.java | 39 class CharBufferSpliterator implements Spliterator.OfInt { 56 public OfInt trySplit() { in trySplit()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 37 Spliterator.OfInt empty = Spliterators.emptyIntSpliterator(); in testEmptyIntSpliterator() 214 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 0); in test_spliterator_int() 227 Spliterator.OfInt split1 = intSp.trySplit(); in test_spliterator_int() 233 Spliterator.OfInt split2 = split1.trySplit(); in test_spliterator_int() 250 Spliterator.OfInt sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_intOffsetBasic() 363 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 0); in test_primitive_spliterators_NPE() 519 private static class CannedIntPrimitiveIterator implements PrimitiveIterator.OfInt { 583 PrimitiveIterator.OfInt elements = new CannedIntPrimitiveIterator(data); in test_spliterator_intPrimitiveIterator() 584 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 16 /* size */, 0); in test_spliterator_intPrimitiveIterator() 597 Spliterator.OfInt split1 = intSp.trySplit(); in test_spliterator_intPrimitiveIterator() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | CharSequence.java | 131 class CharIterator implements PrimitiveIterator.OfInt { in chars() 178 class CodePointIterator implements PrimitiveIterator.OfInt { in codePoints()
|