/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorTest.java | 24 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()
|
D | OptionalIntTest.java | 25 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/ |
D | IntStreamTestScenario.java | 32 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/ |
D | IntStreamTestScenario.java | 32 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/ |
D | Spliterator.java | 29 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()
|
D | PrimitiveIterator.java | 29 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()
|
D | OptionalInt.java | 27 import java.util.function.IntConsumer; 163 public void ifPresent(IntConsumer action) { in ifPresent() 181 public void ifPresentOrElse(IntConsumer action, Runnable emptyAction) { in ifPresentOrElse()
|
D | IntSummaryStatistics.java | 27 import java.util.function.IntConsumer; 65 public class IntSummaryStatistics implements IntConsumer {
|
D | LongSummaryStatistics.java | 27 import java.util.function.IntConsumer; 66 public class LongSummaryStatistics implements LongConsumer, IntConsumer {
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | IntConsumerTest.java | 21 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/ |
D | IntConsumer.java | 42 public interface IntConsumer { interface 63 default IntConsumer andThen(IntConsumer after) { in andThen()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | IntStream.java | 38 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()
|
D | IntPipeline.java | 37 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 …]
|
D | Node.java | 30 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()
|
D | StreamSpliterators.java | 36 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 …]
|
D | Sink.java | 30 import java.util.function.IntConsumer; 191 interface OfInt extends Sink<Integer>, IntConsumer {
|
D | Streams.java | 32 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>
|
D | ForEachOps.java | 33 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()
|
D | BaseStream.java | 34 import java.util.function.IntConsumer;
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBufferSpliterator.java | 30 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/ |
D | MapMultiTest.java | 32 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/ |
D | CharSequence.java | 33 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/ |
D | IntStream.annotated.java | 50 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/ |
D | TestTableSwitch.java | 40 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/ |
D | BasicInt.java | 37 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()
|