/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
IntNodeTest.java | 90 private Node.OfInt fill(int[] array, Node.Builder.OfInt nb) { 98 private Node.OfInt degenerateTree(PrimitiveIterator.OfInt it) { 105 return new Nodes.ConcNode.OfInt(Nodes.node(new int[] {i}), degenerateTree(it)); 112 private Node.OfInt tree(List<Integer> l, Function<List<Integer>, Node.OfInt> m) { 117 return new Nodes.ConcNode.OfInt( 124 public void testAsArray(int[] array, Node.OfInt n) { 129 public void testFlattenAsArray(int[] array, Node.OfInt n) [all...] |
SpinedBufferTest.java | 153 SpinedBuffer.OfInt sb = new SpinedBuffer.OfInt(); 163 public void testIntSpliterator(int[] array, SpinedBuffer.OfInt sb) { 171 public void testIntLastSplit(int[] array, SpinedBuffer.OfInt sb) { 172 Spliterator.OfInt spliterator = sb.spliterator(); 173 Spliterator.OfInt split = spliterator.trySplit(); 196 SpinedBuffer.OfInt sb = new SpinedBuffer.OfInt(); 201 PrimitiveIterator.OfInt it = sb.iterator();
|
SliceSpliteratorTest.java | 90 Spliterator.OfInt s = Arrays.spliterator(source.stream().mapToInt(i->i).toArray()); 92 return new StreamSpliterators.SliceSpliterator.OfInt(s, skip, limit); 95 data.add(new Object[]{"StreamSpliterators.SliceSpliterator.OfInt", r}); 147 Spliterator.OfInt s = Arrays.spliterator(source.stream().mapToInt(i->i).toArray()); 149 return new StreamSpliterators.UnorderedSliceSpliterator.OfInt(s, skip, limit); 152 data.add(new Object[]{"StreamSpliterators.UnorderedSliceSpliterator.OfInt", r});
|
/libcore/ojluni/src/main/java/java/util/stream/ |
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); 185 * Produces a {@link Node.OfInt} describing an int[] array. 192 static Node.OfInt node(int[] array) { 197 * Produces a {@link Node.Builder.OfInt}. 202 * @return a {@code Node.Builder.OfInt} 204 static Node.Builder.OfInt intBuilder(long exactSizeIfKnown) [all...] |
StreamSpliterators.java | 322 extends AbstractWrappingSpliterator<P_IN, Integer, SpinedBuffer.OfInt> 323 implements Spliterator.OfInt { 344 SpinedBuffer.OfInt b = new SpinedBuffer.OfInt(); 346 bufferSink = ph.wrapSink((Sink.OfInt) b::accept); 351 public Spliterator.OfInt trySplit() { 352 return (Spliterator.OfInt) super.trySplit(); 370 ph.wrapAndCopyInto((Sink.OfInt) consumer::accept, spliterator); 577 static final class OfInt 578 extends OfPrimitive<Integer, IntConsumer, Spliterator.OfInt> [all...] |
IntStream.java | 680 PrimitiveIterator.OfInt iterator(); 683 Spliterator.OfInt spliterator(); 743 final PrimitiveIterator.OfInt iterator = new PrimitiveIterator.OfInt() { 774 new StreamSpliterators.InfiniteSupplyingSpliterator.OfInt(Long.MAX_VALUE, s), false); [all...] |
Node.java | 202 interface OfInt extends Node.Builder<Integer>, Sink.OfInt { 204 Node.OfInt build(); 314 interface OfInt extends OfPrimitive<Integer, IntConsumer, int[], Spliterator.OfInt, OfInt> { 331 Tripwire.trip(getClass(), "{0} calling Node.OfInt.forEachRemaining(Consumer)"); 347 Tripwire.trip(getClass(), "{0} calling Node.OfInt.copyInto(Integer[], int)"); 356 default Node.OfInt truncate(long from, long to, IntFunction<Integer[]> generator) { 360 Spliterator.OfInt spliterator = spliterator() [all...] |
StreamSupport.java | 118 * {@code Spliterator.OfInt}. 131 * @param spliterator a {@code Spliterator.OfInt} describing the stream elements 137 public static IntStream intStream(Spliterator.OfInt spliterator, boolean parallel) { 145 * {@code Supplier} of {@code Spliterator.OfInt}. 154 * more efficient to use {@link #intStream(java.util.Spliterator.OfInt, boolean)} 164 * @param supplier a {@code Supplier} of a {@code Spliterator.OfInt} 166 * {@code Spliterator.OfInt}. The characteristics must be equal to 173 * @see #intStream(java.util.Spliterator.OfInt, boolean) 175 public static IntStream intStream(Supplier<? extends Spliterator.OfInt> supplier,
|
Streams.java | 61 static final class RangeIntSpliterator implements Spliterator.OfInt { 137 public Spliterator.OfInt trySplit() { 426 extends AbstractStreamBuilderImpl<Integer, Spliterator.OfInt> 427 implements IntStream.Builder, Spliterator.OfInt { 434 SpinedBuffer.OfInt buffer; 461 buffer = new SpinedBuffer.OfInt(); 815 static class OfInt 816 extends ConcatSpliterator.OfPrimitive<Integer, IntConsumer, Spliterator.OfInt> 817 implements Spliterator.OfInt { 818 OfInt(Spliterator.OfInt aSpliterator, Spliterator.OfInt bSpliterator) [all...] |
Sink.java | 85 * <p>The specialized subtypes such as {@link Sink.OfInt} override 92 * {@code Sink.OfInt}, but also maintain a {@code downstream} field which 190 interface OfInt extends Sink<Integer>, IntConsumer { 197 Tripwire.trip(getClass(), "{0} calling Sink.OfInt.accept(Integer)"); 273 * {@code Sink} of unknown input shape and produces a {@code Sink.OfInt}. 277 static abstract class ChainedInt<E_OUT> implements Sink.OfInt {
|
IntPipeline.java | 112 * Adapt a {@code Spliterator<Integer>} to a {@code Spliterator.OfInt}. 115 * The implementation attempts to cast to a Spliterator.OfInt, and throws an 118 private static Spliterator.OfInt adapt(Spliterator<Integer> s) { 119 if (s instanceof Spliterator.OfInt) { 120 return (Spliterator.OfInt) s; 155 public final Spliterator.OfInt lazySpliterator(Supplier<? extends Spliterator<Integer>> supplier) { 156 return new StreamSpliterators.DelegatingSpliterator.OfInt((Supplier<Spliterator.OfInt>) supplier); 161 Spliterator.OfInt spl = adapt(spliterator); 176 public final PrimitiveIterator.OfInt iterator() [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
CharBufferSpliterator.java | 33 * A Spliterator.OfInt for sources that traverse and split elements 39 class CharBufferSpliterator implements Spliterator.OfInt { 56 public OfInt trySplit() {
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
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) {
|
TestData.java | 70 public interface OfInt extends TestData<Integer, IntStream> { } 113 public static <T> OfInt ofArray(String name, int[] array) { 118 public static OfInt ofSpinedBuffer(String name, SpinedBuffer.OfInt buffer) { 122 SpinedBuffer.OfInt::spliterator, 126 public static OfInt ofIntSupplier(String name, Supplier<IntStream> supplier) { 134 public static OfInt ofNode(String name, Node.OfInt node) { 139 Node.OfInt::spliterator, 281 extends AbstractTestData<Integer, IntStream, I, Spliterator.OfInt> [all...] |
CollectorOps.java | 95 public static class OfInt extends TestParallelSizedOp<Integer> { 96 public OfInt() {
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
IntStreamTestDataProvider.java | 90 SpinedBuffer.OfInt isl = new SpinedBuffer.OfInt(); 111 SpinedBuffer.OfInt isl = new SpinedBuffer.OfInt(); 144 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfInt> s) {
|
TestData.java | 71 public interface OfInt extends TestData<Integer, IntStream> { } 114 public static <T> OfInt ofArray(String name, int[] array) { 119 public static OfInt ofSpinedBuffer(String name, SpinedBuffer.OfInt buffer) { 123 SpinedBuffer.OfInt::spliterator, 127 public static OfInt ofIntSupplier(String name, Supplier<IntStream> supplier) { 135 public static OfInt ofNode(String name, Node.OfInt node) { 140 Node.OfInt::spliterator, 282 extends AbstractTestData<Integer, IntStream, I, Spliterator.OfInt> [all...] |
CollectorOps.java | 96 public static class OfInt extends TestParallelSizedOp<Integer> { 97 public OfInt() {
|
/libcore/ojluni/src/main/java/java/util/ |
Spliterators.java | 35 * {@link Spliterator.OfInt}, {@link Spliterator.OfLong}, and 67 * Creates an empty {@code Spliterator.OfInt} 75 public static Spliterator.OfInt emptyIntSpliterator() { 79 private static final Spliterator.OfInt EMPTY_INT_SPLITERATOR = 80 new EmptySpliterator.OfInt(); 182 * Creates a {@code Spliterator.OfInt} covering the elements of a given array, 204 public static Spliterator.OfInt spliterator(int[] array, 210 * Creates a {@code Spliterator.OfInt} covering a range of elements of a 237 public static Spliterator.OfInt spliterator(int[] array, int fromIndex, int toIndex, 482 * Creates a {@code Spliterator.OfInt} using a give [all...] |
Spliterator.java | 108 * {@link OfInt int}, {@link OfLong long}, and {@link OfDouble double} values. 116 * {@link Spliterator.OfInt#tryAdvance(java.util.function.IntConsumer)} 117 * and {@link Spliterator.OfInt#forEachRemaining(java.util.function.IntConsumer)} 119 * {@link Spliterator.OfInt#tryAdvance(java.util.function.Consumer)} and 120 * {@link Spliterator.OfInt#forEachRemaining(java.util.function.Consumer)}. 592 * {@link Spliterator.OfInt} for {@code Integer}. 594 * @see Spliterator.OfInt 644 public interface OfInt extends OfPrimitive<Integer, IntConsumer, OfInt> { 647 OfInt trySplit() [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
CharSequence.java | 131 class CharIterator implements PrimitiveIterator.OfInt { 178 class CodePointIterator implements PrimitiveIterator.OfInt {
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
IntUniqOpTest.java | 55 public void testOp(String name, TestData.OfInt data) { 67 public void testOpSorted(String name, TestData.OfInt data) {
|
PrimitiveAverageOpTest.java | 39 public void testOps(String name, TestData.OfInt data) {
|
SpliteratorTest.java | 53 public void testIntSpliterator(String name, Supplier<Spliterator.OfInt> supplier) {
|
/libcore/luni/src/test/java/libcore/java/util/ |
SpliteratorsTest.java | 37 Spliterator.OfInt empty = Spliterators.emptyIntSpliterator(); 214 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 0); 227 Spliterator.OfInt split1 = intSp.trySplit(); 233 Spliterator.OfInt split2 = split1.trySplit(); 250 Spliterator.OfInt sp = Spliterators.spliterator(elements, 2, 6, 0); 363 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 0); 519 private static class CannedIntPrimitiveIterator implements PrimitiveIterator.OfInt { 583 PrimitiveIterator.OfInt elements = new CannedIntPrimitiveIterator(data); 584 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 16 /* size */, 0); 597 Spliterator.OfInt split1 = intSp.trySplit() [all...] |