/libcore/ojluni/src/main/java/java/util/ |
H A D | PrimitiveIterator.java | 34 * subtypes are provided for {@link OfInt int}, {@link OfLong long}, and 42 * should be used. For example, {@link PrimitiveIterator.OfInt#nextInt()} and 43 * {@link PrimitiveIterator.OfInt#forEachRemaining(java.util.function.IntConsumer)} 44 * should be used in preference to {@link PrimitiveIterator.OfInt#next()} and 45 * {@link PrimitiveIterator.OfInt#forEachRemaining(java.util.function.Consumer)}. 86 public static interface OfInt extends PrimitiveIterator<Integer, IntConsumer> { interface in interface:PrimitiveIterator 127 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfInt.nextInt()"); 149 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfInt.forEachRemainingInt(action::accept)");
|
H A D | 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> { interface in interface:Spliterator 647 OfInt trySpli [all...] |
H A D | 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} usin 867 private static final class OfInt class in class:Spliterators.EmptySpliterator 870 OfInt() { } method in class:Spliterators.EmptySpliterator.OfInt [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | 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 { interface in interface:Sink 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 {
|
H A D | FindOps.java | 71 OptionalInt::isPresent, FindSink.OfInt::new); 198 static final class OfInt extends FindSink<Integer, OptionalInt> class in class:FindOps.FindSink 199 implements Sink.OfInt {
|
H A D | ForEachOps.java | 88 return new ForEachOp.OfInt(action, ordered); 189 static final class OfInt extends ForEachOp<Integer> class in class:ForEachOps.ForEachOp 190 implements Sink.OfInt { 193 OfInt(IntConsumer consumer, boolean ordered) { method in class:ForEachOps.ForEachOp.OfInt
|
H A D | Node.java | 202 interface OfInt extends Node.Builder<Integer>, Sink.OfInt { interface in interface:Node.Builder 204 Node.OfInt build(); 314 interface OfInt extends OfPrimitive<Integer, IntConsumer, int[], Spliterator.OfInt, OfInt> { interface in interface:Node 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 spliterato [all...] |
H A D | SortedOps.java | 73 return new OfInt(upstream); 167 private static final class OfInt extends IntPipeline.StatefulOp<Integer> { class in class:SortedOps 168 OfInt(AbstractPipeline<?, Integer, ?> upstream) { method in class:SortedOps.OfInt 193 Node.OfInt n = (Node.OfInt) helper.evaluate(spliterator, true, generator); 469 private SpinedBuffer.OfInt b; 479 b = (size > 0) ? new SpinedBuffer.OfInt((int) size) : new SpinedBuffer.OfInt();
|
H A D | SpinedBuffer.java | 726 public static class OfInt extends SpinedBuffer.OfPrimitive<Integer, int[], IntConsumer> class in class:SpinedBuffer 728 public OfInt() { } method in class:SpinedBuffer.OfInt 730 public OfInt(int initialCapacity) { method in class:SpinedBuffer.OfInt 741 Tripwire.trip(getClass(), "{0} calling SpinedBuffer.OfInt.forEach(Consumer)"); 786 public PrimitiveIterator.OfInt iterator() { 790 public Spliterator.OfInt spliterator() { 791 class Splitr extends BaseSpliterator<Spliterator.OfInt> 792 implements Spliterator.OfInt { 812 Spliterator.OfInt arraySpliterator(int[] array, int offset, int len) {
|
H A D | 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 class in class:Streams.ConcatSpliterator 816 extends ConcatSpliterator.OfPrimitive<Integer, IntConsumer, Spliterator.OfInt> 817 implements Spliterator.OfInt { 818 OfInt(Spliterato method in class:Streams.ConcatSpliterator.OfInt [all...] |
H A D | 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 class in class:StreamSpliterators.DelegatingSpliterator 578 extends OfPrimitive<Integer, IntConsumer, Spliterator.OfInt> 581 OfInt(Supplier<Spliterator.OfInt> supplier) { method in class:StreamSpliterators.DelegatingSpliterator.OfInt 820 static final class OfInt extends OfPrimitive<Integer, Spliterator.OfInt, IntConsumer> class in class:StreamSpliterators.SliceSpliterator 822 OfInt(Spliterator.OfInt s, long sliceOrigin, long sliceFence) { method in class:StreamSpliterators.SliceSpliterator.OfInt 826 OfInt(Spliterator.OfInt s, method in class:StreamSpliterators.SliceSpliterator.OfInt 1129 static final class OfInt class in class:StreamSpliterators.UnorderedSliceSpliterator 1135 OfInt(Spliterator.OfInt s, long skip, long limit) { method in class:StreamSpliterators.UnorderedSliceSpliterator.OfInt 1139 OfInt(Spliterator.OfInt s, UnorderedSliceSpliterator.OfInt parent) { method in class:StreamSpliterators.UnorderedSliceSpliterator.OfInt 1368 static final class OfInt extends InfiniteSupplyingSpliterator<Integer> class in class:StreamSpliterators.InfiniteSupplyingSpliterator 1372 OfInt(long size, IntSupplier s) { method in class:StreamSpliterators.InfiniteSupplyingSpliterator.OfInt 1484 static final class OfInt extends OfPrimitive<IntConsumer> class in class:StreamSpliterators.ArrayBuffer 1488 OfInt(int size) { method in class:StreamSpliterators.ArrayBuffer.OfInt [all...] |
H A 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); 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 intBuilde 585 private static final class OfInt class in class:Nodes.EmptyNode 589 OfInt() { } // Avoid creation of special accessor method in class:Nodes.EmptyNode.OfInt 883 static final class OfInt class in class:Nodes.ConcNode 887 OfInt(Node.OfInt left, Node.OfInt right) { method in class:Nodes.ConcNode.OfInt 1163 private static final class OfInt class in class:Nodes.InternalNodeSpliterator 1167 OfInt(Node.OfInt cur) { method in class:Nodes.InternalNodeSpliterator.OfInt 1928 static final class OfInt<P_IN> class in class:Nodes.SizedCollectorTask 1933 OfInt(Spliterator<P_IN> spliterator, PipelineHelper<Integer> helper, int[] array) { method in class:Nodes.SizedCollectorTask.OfInt 1938 OfInt(SizedCollectorTask.OfInt<P_IN> parent, Spliterator<P_IN> spliterator, method in class:Nodes.SizedCollectorTask.OfInt 2125 private static final class OfInt class in class:Nodes.ToArrayTask 2127 private OfInt(Node.OfInt node, int[] array, int offset) { method in class:Nodes.ToArrayTask.OfInt 2204 private static final class OfInt<P_IN> class in class:Nodes.CollectorTask 2206 OfInt(PipelineHelper<Integer> helper, Spliterator<P_IN> spliterator) { method in class:Nodes.CollectorTask.OfInt [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | CollectorOps.java | 95 public static class OfInt extends TestParallelSizedOp<Integer> { class in class:CollectorOps.TestParallelSizedOp 96 public OfInt() { method in class:CollectorOps.TestParallelSizedOp.OfInt
|
H A D | TestData.java | 70 public interface OfInt extends TestData<Integer, IntStream> { } interface in interface:TestData 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...] |
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | CollectorOps.java | 96 public static class OfInt extends TestParallelSizedOp<Integer> { class in class:CollectorOps.TestParallelSizedOp 97 public OfInt() { method in class:CollectorOps.TestParallelSizedOp.OfInt
|
H A D | TestData.java | 71 public interface OfInt extends TestData<Integer, IntStream> { } interface in interface:TestData 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...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | StreamSpliteratorTest.java | 118 private static class OfInt extends ProxyNoExactSizeSpliterator<Integer> implements Spliterator.OfInt { class in class:StreamSpliteratorTest.ProxyNoExactSizeSpliterator 119 final Spliterator.OfInt psp; 121 private OfInt(Spliterator.OfInt sp, boolean proxyEstimateSize) { method in class:StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfInt 127 public Spliterator.OfInt trySplit() { 129 Spliterator.OfInt prefix = psp.trySplit(); 137 return Spliterator.OfInt.super.tryAdvance(consumer); 142 Spliterator.OfInt.super.forEachRemaining(consumer); 364 Spliterator.OfInt s [all...] |