Home
last modified time | relevance | path

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

123

/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTest.java24 import java.util.function.IntConsumer;
37 implements OfPrimitive<Integer, IntConsumer, PrimitiveIntegerSpliterator> {
46 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
67 if (action instanceof IntConsumer) { in tryAdvance()
70 return tryAdvance((IntConsumer) action::accept); in tryAdvance()
83 OfPrimitive<Integer, IntConsumer, PrimitiveIntegerSpliterator> spliterator = in testOfPrimitiveForEachRemaining()
86 IntConsumer action = (i) -> sum.addAndGet(i); in testOfPrimitiveForEachRemaining()
DOptionalIntTest.java25 import java.util.function.IntConsumer;
50 IntConsumer alwaysFails = value -> fail(); in testIfPresent()
54 IntConsumer recorder = value -> reference.set(value);; in testIfPresent()
/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;
662 public interface OfInt extends OfPrimitive<Integer, IntConsumer, OfInt> {
668 boolean tryAdvance(IntConsumer action); in tryAdvance()
671 default void forEachRemaining(IntConsumer action) { in forEachRemaining()
687 if (action instanceof IntConsumer) { in tryAdvance()
688 return tryAdvance((IntConsumer) action); in tryAdvance()
694 return tryAdvance((IntConsumer) action::accept); in tryAdvance()
710 if (action instanceof IntConsumer) { in forEachRemaining()
711 forEachRemaining((IntConsumer) action); in forEachRemaining()
717 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
DPrimitiveIterator.java29 import java.util.function.IntConsumer;
94 public static interface OfInt extends PrimitiveIterator<Integer, IntConsumer> {
113 default void forEachRemaining(IntConsumer action) { in forEachRemaining()
143 if (action instanceof IntConsumer) { in forEachRemaining()
144 forEachRemaining((IntConsumer) action); in forEachRemaining()
151 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
DOptionalInt.java27 import java.util.function.IntConsumer;
163 public void ifPresent(IntConsumer action) { in ifPresent()
181 public void ifPresentOrElse(IntConsumer action, Runnable emptyAction) { in ifPresentOrElse()
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 {
/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/util/stream/
DIntStream.java38 import java.util.function.IntConsumer;
259 IntStream peek(IntConsumer action); in peek()
464 void forEach(IntConsumer action); in forEach()
478 void forEachOrdered(IntConsumer action); in forEachOrdered()
951 public boolean tryAdvance(IntConsumer action) { in iterate()
1013 public boolean tryAdvance(IntConsumer action) { in iterate()
1033 public void forEachRemaining(IntConsumer action) { in iterate()
1170 public interface Builder extends IntConsumer {
1237 void accept(int value, IntConsumer ic); in accept()
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()
319 IntConsumer downstreamAsInt = downstream::accept;
373 mapper.accept(t, (IntConsumer) downstream);
418 public final IntStream peek(IntConsumer action) {
480 public void forEach(IntConsumer action) {
485 public void forEachOrdered(IntConsumer action) {
[all …]
DNode.java30 import java.util.function.IntConsumer;
319 interface OfInt extends OfPrimitive<Integer, IntConsumer, int[], Spliterator.OfInt, OfInt> {
331 if (consumer instanceof IntConsumer) { in forEach()
332 forEach((IntConsumer) consumer); in forEach()
368 for (int i = 0; i < from && spliterator.tryAdvance((IntConsumer) e -> { }); i++) { } in truncate()
370 spliterator.forEachRemaining((IntConsumer) nodeBuilder); in truncate()
372 … for (int i = 0; i < size && spliterator.tryAdvance((IntConsumer) nodeBuilder); i++) { } in truncate()
DStreamSpliterators.java36 import java.util.function.IntConsumer;
354 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance()
363 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining()
576 extends OfPrimitive<Integer, IntConsumer, Spliterator.OfInt>
818 static final class OfInt extends OfPrimitive<Integer, Spliterator.OfInt, IntConsumer>
837 protected IntConsumer emptyConsumer() { in emptyConsumer()
1132 extends OfPrimitive<Integer, IntConsumer, ArrayBuffer.OfInt, Spliterator.OfInt>
1133 implements Spliterator.OfInt, IntConsumer {
1151 protected void acceptConsumed(IntConsumer action) { in acceptConsumed()
1380 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
[all …]
DSink.java30 import java.util.function.IntConsumer;
191 interface OfInt extends Sink<Integer>, IntConsumer {
DStreams.java32 import java.util.function.IntConsumer;
76 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance()
95 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining()
484 public boolean tryAdvance(IntConsumer action) { in tryAdvance()
498 public void forEachRemaining(IntConsumer action) { in forEachRemaining()
808 extends ConcatSpliterator.OfPrimitive<Integer, IntConsumer, Spliterator.OfInt>
DForEachOps.java33 import java.util.function.IntConsumer;
84 public static TerminalOp<Integer, Void> makeInt(IntConsumer action, in makeInt()
190 final IntConsumer consumer;
192 OfInt(IntConsumer consumer, boolean ordered) { in OfInt()
DBaseStream.java34 import java.util.function.IntConsumer;
/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/luni/src/test/java/libcore/java/util/stream/
DMapMultiTest.java32 import java.util.function.IntConsumer;
39 private BiConsumer<Integer, IntConsumer> intToId = (e, sink) -> sink.accept(e);
43 private BiConsumer<Integer, IntConsumer> intDevNull = (e, sink) -> {};
47 private BiConsumer<List<Integer>, IntConsumer> intListFlattener = (list, sink) -> {
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java33 import java.util.function.IntConsumer;
165 public void forEachRemaining(IntConsumer block) { in chars()
203 public void forEachRemaining(IntConsumer block) { in codePoints()
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DIntStream.annotated.java50 public java.util.stream.IntStream peek(java.util.function.IntConsumer action); in peek()
62 public void forEach(java.util.function.IntConsumer action); in forEach()
64 public void forEachOrdered(java.util.function.IntConsumer action); in forEachOrdered()
131 public static interface Builder extends java.util.function.IntConsumer {
145 public void accept(int value, java.util.function.IntConsumer ic); in accept()
/libcore/ojluni/src/test/java/lang/invoke/MethodHandles/
DTestTableSwitch.java40 import java.util.function.IntConsumer;
53 MH_IntConsumer_accept = lookup.findVirtual(IntConsumer.class, "accept",
175 IntConsumer test = actualIndex -> assertEquals(actualIndex, expectedIndex); in testVoidHandles()
/libcore/ojluni/src/test/java/util/Optional/
DBasicInt.java37 import java.util.function.IntConsumer;
158 OptionalInt receiver, IntConsumer action, Runnable emptyAction) { in OptionalInt_ifPresentOrElse()
160 MethodType type = MethodType.methodType(void.class, IntConsumer.class, Runnable.class); in OptionalInt_ifPresentOrElse()

123