Home
last modified time | relevance | path

Searched refs:LongConsumer (Results 1 – 25 of 40) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLongStreamTestScenario.java32 import java.util.function.LongConsumer;
51 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE()
63 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY()
72 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR()
81 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR()
90 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
98 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_FOREACH()
105 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
113 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_FOR_EACH_ORDERED()
122 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SPLITERATOR()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLongStreamTestScenario.java32 import java.util.function.LongConsumer;
48 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY()
69 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR()
78 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR()
87 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
95 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_FOREACH()
102 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
110 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_FOR_EACH_ORDERED()
119 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SPLITERATOR()
[all …]
/libcore/ojluni/src/main/java/java/util/
DSpliterator.java30 import java.util.function.LongConsumer;
708 public interface OfLong extends OfPrimitive<Long, LongConsumer, OfLong> {
714 boolean tryAdvance(LongConsumer action); in tryAdvance()
717 default void forEachRemaining(LongConsumer action) { in forEachRemaining()
733 if (action instanceof LongConsumer) { in tryAdvance()
734 return tryAdvance((LongConsumer) action); in tryAdvance()
740 return tryAdvance((LongConsumer) action::accept); in tryAdvance()
756 if (action instanceof LongConsumer) { in forEachRemaining()
757 forEachRemaining((LongConsumer) action); in forEachRemaining()
763 forEachRemaining((LongConsumer) action::accept); in forEachRemaining()
DPrimitiveIterator.java30 import java.util.function.LongConsumer;
160 public static interface OfLong extends PrimitiveIterator<Long, LongConsumer> {
186 default void forEachRemaining(LongConsumer action) { in forEachRemaining()
216 if (action instanceof LongConsumer) { in forEachRemaining()
217 forEachRemaining((LongConsumer) action); in forEachRemaining()
224 forEachRemaining((LongConsumer) action::accept); in forEachRemaining()
DLongSummaryStatistics.java28 import java.util.function.LongConsumer;
66 public class LongSummaryStatistics implements LongConsumer, IntConsumer {
DOptionalLong.java27 import java.util.function.LongConsumer;
136 public void ifPresent(LongConsumer consumer) { in ifPresent()
DSpliterators.java30 import java.util.function.LongConsumer;
758 class Adapter implements PrimitiveIterator.OfLong, LongConsumer { in iterator()
874 extends EmptySpliterator<Long, Spliterator.OfLong, LongConsumer>
1109 public void forEachRemaining(LongConsumer action) { in forEachRemaining()
1120 public boolean tryAdvance(LongConsumer action) { in tryAdvance()
1513 static final class HoldingLongConsumer implements LongConsumer {
2000 public void forEachRemaining(LongConsumer action) { in forEachRemaining()
2006 public boolean tryAdvance(LongConsumer action) { in tryAdvance()
DSplittableRandom.java31 import java.util.function.LongConsumer;
914 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance()
925 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining()
DRandom.java31 import java.util.function.LongConsumer;
1080 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance()
1091 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining()
/libcore/luni/src/test/java/libcore/java/util/function/
DLongConsumerTest.java21 import java.util.function.LongConsumer;
27 LongConsumer one = l -> sb.append("one:" + l + ","); in testAndThen()
28 LongConsumer two = l -> sb.append("two:" + l); in testAndThen()
35 LongConsumer one = s -> {}; in testAndThen_null()
/libcore/ojluni/src/main/java/java/util/function/
DLongConsumer.java42 public interface LongConsumer { interface
63 default LongConsumer andThen(LongConsumer after) { in andThen()
/libcore/luni/src/test/java/libcore/java/util/
DOptionalLongTest.java25 import java.util.function.LongConsumer;
50 LongConsumer alwaysFails = value -> fail(); in testIfPresent()
54 LongConsumer recorder = (long value) -> reference.set(value); in testIfPresent()
DPrimitiveIteratorTest.java28 import java.util.function.LongConsumer;
149 cit.forEachRemaining((LongConsumer) null); in testLongIterator_forEachRemaining_Consumer()
/libcore/ojluni/src/main/java/java/util/stream/
DLongPipeline.java38 import java.util.function.LongConsumer;
100 private static LongConsumer adapt(Sink<Long> sink) { in adapt()
101 if (sink instanceof LongConsumer) { in adapt()
102 return (LongConsumer) sink; in adapt()
166 LongConsumer adaptedSink = adapt(sink); in forEachWithCancel()
349 public final LongStream peek(LongConsumer action) {
401 public void forEach(LongConsumer action) {
406 public void forEachOrdered(LongConsumer action) {
561 public void forEach(LongConsumer action) {
570 public void forEachOrdered(LongConsumer action) {
DLongStream.java43 import java.util.function.LongConsumer;
222 LongStream peek(LongConsumer action); in peek()
296 void forEach(LongConsumer action); in forEach()
310 void forEachOrdered(LongConsumer action); in forEachOrdered()
877 public interface Builder extends LongConsumer {
DNode.java32 import java.util.function.LongConsumer;
388 interface OfLong extends OfPrimitive<Long, LongConsumer, long[], Spliterator.OfLong, OfLong> {
400 if (consumer instanceof LongConsumer) { in forEach()
401 forEach((LongConsumer) consumer); in forEach()
437 for (int i = 0; i < from && spliterator.tryAdvance((LongConsumer) e -> { }); i++) { } in truncate()
438 … for (int i = 0; (i < size) && spliterator.tryAdvance((LongConsumer) nodeBuilder); i++) { } in truncate()
DSink.java31 import java.util.function.LongConsumer;
208 interface OfLong extends Sink<Long>, LongConsumer {
DStreamSpliterators.java38 import java.util.function.LongConsumer;
414 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance()
423 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining()
587 extends OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
844 static final class OfLong extends OfPrimitive<Long, Spliterator.OfLong, LongConsumer>
863 protected LongConsumer emptyConsumer() { in emptyConsumer()
1165 extends OfPrimitive<Long, LongConsumer, ArrayBuffer.OfLong, Spliterator.OfLong>
1166 implements Spliterator.OfLong, LongConsumer {
1184 protected void acceptConsumed(LongConsumer action) { in acceptConsumed()
1403 public boolean tryAdvance(LongConsumer action) { in tryAdvance()
[all …]
DStreams.java33 import java.util.function.LongConsumer;
208 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance()
226 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining()
583 public boolean tryAdvance(LongConsumer action) { in tryAdvance()
597 public void forEachRemaining(LongConsumer action) { in forEachRemaining()
824 extends ConcatSpliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
DForEachOps.java36 import java.util.function.LongConsumer;
100 public static TerminalOp<Long, Void> makeLong(LongConsumer action, in makeLong()
212 final LongConsumer consumer;
214 OfLong(LongConsumer consumer, boolean ordered) { in OfLong()
DSpinedBuffer.java39 import java.util.function.LongConsumer;
846 public static class OfLong extends SpinedBuffer.OfPrimitive<Long, long[], LongConsumer>
847 implements LongConsumer {
858 if (consumer instanceof LongConsumer) { in forEach()
859 forEach((LongConsumer) consumer); in forEach()
886 LongConsumer consumer) { in arrayForEach()
930 void arrayForOne(long[] array, int index, LongConsumer consumer) { in spliterator()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DLongPrimitiveOpsTests.java32 import java.util.function.LongConsumer;
140 class AssertingConsumer implements LongConsumer { in testSequential()
DTeeOpTest.java36 import java.util.function.LongConsumer;
122 class RecordingConsumer extends AbstractRecordingConsumer<Long> implements LongConsumer { in testLongOps()
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java346 public boolean tryAdvance(java.util.function.LongConsumer consumer) { in tryAdvance()
350 public void forEachRemaining(java.util.function.LongConsumer consumer) { in forEachRemaining()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DSerializedLambdaTest.java42 import java.util.function.LongConsumer;
292 LongConsumer lc = (LongConsumer & Serializable) a::addAndGet; in testDiscardReturnBound()

12