Home
last modified time | relevance | path

Searched refs:IntConsumer (Results 1 – 25 of 43) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DIntStreamTestScenario.java32 import java.util.function.IntConsumer;
48 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY()
69 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR()
78 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR()
87 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
95 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_FOREACH()
102 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
110 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_FOR_EACH_ORDERED()
119 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SPLITERATOR()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DIntStreamTestScenario.java32 import java.util.function.IntConsumer;
51 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE()
63 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY()
72 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR()
81 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR()
90 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
98 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_FOREACH()
105 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
113 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_FOR_EACH_ORDERED()
122 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SPLITERATOR()
[all …]
/libcore/ojluni/src/main/java/java/util/
DSpliterator.java29 import java.util.function.IntConsumer;
644 public interface OfInt extends OfPrimitive<Integer, IntConsumer, OfInt> {
650 boolean tryAdvance(IntConsumer action); in tryAdvance()
653 default void forEachRemaining(IntConsumer action) { in forEachRemaining()
669 if (action instanceof IntConsumer) { in tryAdvance()
670 return tryAdvance((IntConsumer) action); in tryAdvance()
676 return tryAdvance((IntConsumer) action::accept); in tryAdvance()
692 if (action instanceof IntConsumer) { in forEachRemaining()
693 forEachRemaining((IntConsumer) action); in forEachRemaining()
699 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
DPrimitiveIterator.java29 import java.util.function.IntConsumer;
86 public static interface OfInt extends PrimitiveIterator<Integer, IntConsumer> {
112 default void forEachRemaining(IntConsumer action) { in forEachRemaining()
142 if (action instanceof IntConsumer) { in forEachRemaining()
143 forEachRemaining((IntConsumer) action); in forEachRemaining()
150 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
DIntSummaryStatistics.java27 import java.util.function.IntConsumer;
65 public class IntSummaryStatistics implements IntConsumer {
DLongSummaryStatistics.java27 import java.util.function.IntConsumer;
66 public class LongSummaryStatistics implements LongConsumer, IntConsumer {
DOptionalInt.java27 import java.util.function.IntConsumer;
136 public void ifPresent(IntConsumer consumer) { in ifPresent()
DSpliterators.java29 import java.util.function.IntConsumer;
713 class Adapter implements PrimitiveIterator.OfInt, IntConsumer { in iterator()
868 extends EmptySpliterator<Integer, Spliterator.OfInt, IntConsumer>
1026 public void forEachRemaining(IntConsumer action) { in forEachRemaining()
1037 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
1403 static final class HoldingIntConsumer implements IntConsumer {
1906 public void forEachRemaining(IntConsumer action) { in forEachRemaining()
1912 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
/libcore/luni/src/test/java/libcore/java/util/function/
DIntConsumerTest.java21 import java.util.function.IntConsumer;
27 IntConsumer one = i -> sb.append("one:" + i + ","); in testAndThen()
28 IntConsumer two = i -> sb.append("two:" + i); in testAndThen()
35 IntConsumer one = s -> {}; in testAndThen_null()
/libcore/ojluni/src/main/java/java/util/function/
DIntConsumer.java42 public interface IntConsumer { interface
63 default IntConsumer andThen(IntConsumer after) { in andThen()
/libcore/ojluni/src/main/java/java/nio/
DCharBufferSpliterator.java30 import java.util.function.IntConsumer;
64 public void forEachRemaining(IntConsumer action) { in forEachRemaining()
77 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
/libcore/ojluni/src/main/java/java/util/stream/
DIntStream.java38 import java.util.function.IntConsumer;
217 IntStream peek(IntConsumer action); in peek()
291 void forEach(IntConsumer action); in forEach()
305 void forEachOrdered(IntConsumer action); in forEachOrdered()
869 public interface Builder extends IntConsumer {
DIntPipeline.java37 import java.util.function.IntConsumer;
100 private static IntConsumer adapt(Sink<Integer> sink) { in adapt()
101 if (sink instanceof IntConsumer) { in adapt()
102 return (IntConsumer) sink; in adapt()
168 IntConsumer adaptedSink = adapt(sink); in forEachWithCancel()
368 public final IntStream peek(IntConsumer action) {
420 public void forEach(IntConsumer action) {
425 public void forEachOrdered(IntConsumer action) {
578 public void forEach(IntConsumer action) {
588 public void forEachOrdered(IntConsumer action) {
DNode.java30 import java.util.function.IntConsumer;
315 interface OfInt extends OfPrimitive<Integer, IntConsumer, int[], Spliterator.OfInt, OfInt> {
327 if (consumer instanceof IntConsumer) { in forEach()
328 forEach((IntConsumer) consumer); in forEach()
364 for (int i = 0; i < from && spliterator.tryAdvance((IntConsumer) e -> { }); i++) { } in truncate()
365 … for (int i = 0; (i < size) && spliterator.tryAdvance((IntConsumer) nodeBuilder); i++) { } in truncate()
DSink.java30 import java.util.function.IntConsumer;
191 interface OfInt extends Sink<Integer>, IntConsumer {
DStreamSpliterators.java36 import java.util.function.IntConsumer;
356 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance()
365 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining()
578 extends OfPrimitive<Integer, IntConsumer, Spliterator.OfInt>
820 static final class OfInt extends OfPrimitive<Integer, Spliterator.OfInt, IntConsumer>
839 protected IntConsumer emptyConsumer() { in emptyConsumer()
1130 extends OfPrimitive<Integer, IntConsumer, ArrayBuffer.OfInt, Spliterator.OfInt>
1131 implements Spliterator.OfInt, IntConsumer {
1149 protected void acceptConsumed(IntConsumer action) { in acceptConsumed()
1378 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
[all …]
DStreams.java32 import java.util.function.IntConsumer;
83 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance()
101 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining()
492 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
506 public void forEachRemaining(IntConsumer action) { in forEachRemaining()
816 extends ConcatSpliterator.OfPrimitive<Integer, IntConsumer, Spliterator.OfInt>
DForEachOps.java34 import java.util.function.IntConsumer;
85 public static TerminalOp<Integer, Void> makeInt(IntConsumer action, in makeInt()
191 final IntConsumer consumer;
193 OfInt(IntConsumer consumer, boolean ordered) { in OfInt()
DBaseStream.java34 import java.util.function.IntConsumer;
DSpinedBuffer.java37 import java.util.function.IntConsumer;
729 public static class OfInt extends SpinedBuffer.OfPrimitive<Integer, int[], IntConsumer>
730 implements IntConsumer {
741 if (consumer instanceof IntConsumer) { in forEach()
742 forEach((IntConsumer) consumer); in forEach()
769 IntConsumer consumer) { in arrayForEach()
812 void arrayForOne(int[] array, int index, IntConsumer consumer) { in spliterator()
/libcore/luni/src/test/java/libcore/java/util/
DOptionalIntTest.java25 import java.util.function.IntConsumer;
50 IntConsumer alwaysFails = value -> fail(); in testIfPresent()
54 IntConsumer recorder = value -> reference.set(value);; in testIfPresent()
DPrimitiveIteratorTest.java27 import java.util.function.IntConsumer;
102 cit.forEachRemaining((IntConsumer) null); in testIntIterator_forEachRemaining_Consumer()
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java32 import java.util.function.IntConsumer;
147 public void forEachRemaining(IntConsumer block) { in chars()
182 public void forEachRemaining(IntConsumer block) { in codePoints()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntPrimitiveOpsTests.java32 import java.util.function.IntConsumer;
140 class AssertingConsumer implements IntConsumer { in testSequential()
DTeeOpTest.java35 import java.util.function.IntConsumer;
106 class RecordingConsumer extends AbstractRecordingConsumer<Integer> implements IntConsumer { in testIntOps()

12