/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LongStreamTestScenario.java | 32 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/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LongStreamTestScenario.java | 32 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/main/java/java/util/ |
D | Spliterator.java | 30 import java.util.function.LongConsumer; 726 public interface OfLong extends OfPrimitive<Long, LongConsumer, OfLong> { 732 boolean tryAdvance(LongConsumer action); in tryAdvance() 735 default void forEachRemaining(LongConsumer action) { in forEachRemaining() 751 if (action instanceof LongConsumer) { in tryAdvance() 752 return tryAdvance((LongConsumer) action); in tryAdvance() 758 return tryAdvance((LongConsumer) action::accept); in tryAdvance() 774 if (action instanceof LongConsumer) { in forEachRemaining() 775 forEachRemaining((LongConsumer) action); in forEachRemaining() 781 forEachRemaining((LongConsumer) action::accept); in forEachRemaining()
|
D | PrimitiveIterator.java | 30 import java.util.function.LongConsumer; 161 public static interface OfLong extends PrimitiveIterator<Long, LongConsumer> { 180 default void forEachRemaining(LongConsumer action) { in forEachRemaining() 210 if (action instanceof LongConsumer) { in forEachRemaining() 211 forEachRemaining((LongConsumer) action); in forEachRemaining() 218 forEachRemaining((LongConsumer) action::accept); in forEachRemaining()
|
D | OptionalLong.java | 27 import java.util.function.LongConsumer; 163 public void ifPresent(LongConsumer action) { in ifPresent() 181 public void ifPresentOrElse(LongConsumer action, Runnable emptyAction) { in ifPresentOrElse()
|
D | LongSummaryStatistics.java | 28 import java.util.function.LongConsumer; 66 public class LongSummaryStatistics implements LongConsumer, IntConsumer {
|
D | Spliterators.java | 30 import java.util.function.LongConsumer; 782 class Adapter implements PrimitiveIterator.OfLong, LongConsumer { in iterator() 810 public void forEachRemaining(LongConsumer action) { in iterator() 918 extends EmptySpliterator<Long, Spliterator.OfLong, LongConsumer> 1153 public void forEachRemaining(LongConsumer action) { in forEachRemaining() 1164 public boolean tryAdvance(LongConsumer action) { in tryAdvance() 1557 static final class HoldingLongConsumer implements LongConsumer { 2044 public void forEachRemaining(LongConsumer action) { in forEachRemaining() 2050 public boolean tryAdvance(LongConsumer action) { in tryAdvance()
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | LongConsumerTest.java | 21 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/ |
D | LongConsumer.java | 42 public interface LongConsumer { interface 63 default LongConsumer andThen(LongConsumer after) { in andThen()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | LongStream.java | 38 import java.util.function.LongConsumer; 259 LongStream peek(LongConsumer action); in peek() 466 void forEach(LongConsumer action); in forEach() 480 void forEachOrdered(LongConsumer action); in forEachOrdered() 940 public boolean tryAdvance(LongConsumer action) { in iterate() 1002 public boolean tryAdvance(LongConsumer action) { in iterate() 1022 public void forEachRemaining(LongConsumer action) { in iterate() 1174 public interface Builder extends LongConsumer { 1241 void accept(long value, LongConsumer lc); in accept()
|
D | LongPipeline.java | 38 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() 301 LongConsumer downstreamAsLong = downstream::accept; 355 mapper.accept(t, (LongConsumer) downstream); 400 public final LongStream peek(LongConsumer action) { 462 public void forEach(LongConsumer action) { 467 public void forEachOrdered(LongConsumer action) { [all …]
|
D | Node.java | 32 import java.util.function.LongConsumer; 396 interface OfLong extends OfPrimitive<Long, LongConsumer, long[], Spliterator.OfLong, OfLong> { 408 if (consumer instanceof LongConsumer) { in forEach() 409 forEach((LongConsumer) consumer); in forEach() 445 for (int i = 0; i < from && spliterator.tryAdvance((LongConsumer) e -> { }); i++) { } in truncate() 447 spliterator.forEachRemaining((LongConsumer) nodeBuilder); in truncate() 449 … for (int i = 0; i < size && spliterator.tryAdvance((LongConsumer) nodeBuilder); i++) { } in truncate()
|
D | StreamSpliterators.java | 38 import java.util.function.LongConsumer; 412 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() 421 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining() 585 extends OfPrimitive<Long, LongConsumer, Spliterator.OfLong> 842 static final class OfLong extends OfPrimitive<Long, Spliterator.OfLong, LongConsumer> 861 protected LongConsumer emptyConsumer() { in emptyConsumer() 1167 extends OfPrimitive<Long, LongConsumer, ArrayBuffer.OfLong, Spliterator.OfLong> 1168 implements Spliterator.OfLong, LongConsumer { 1186 protected void acceptConsumed(LongConsumer action) { in acceptConsumed() 1405 public boolean tryAdvance(LongConsumer action) { in tryAdvance() [all …]
|
D | Sink.java | 31 import java.util.function.LongConsumer; 208 interface OfLong extends Sink<Long>, LongConsumer {
|
D | Streams.java | 33 import java.util.function.LongConsumer; 201 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() 219 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining() 575 public boolean tryAdvance(LongConsumer action) { in tryAdvance() 589 public void forEachRemaining(LongConsumer action) { in forEachRemaining() 816 extends ConcatSpliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
|
D | ForEachOps.java | 35 import java.util.function.LongConsumer; 99 public static TerminalOp<Long, Void> makeLong(LongConsumer action, in makeLong() 211 final LongConsumer consumer; 213 OfLong(LongConsumer consumer, boolean ordered) { in OfLong()
|
D | SpinedBuffer.java | 39 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/luni/src/test/java/libcore/java/util/stream/ |
D | MapMultiTest.java | 33 import java.util.function.LongConsumer; 40 private BiConsumer<Long, LongConsumer> longToId = (e, sink) -> sink.accept(e); 44 private BiConsumer<Long, LongConsumer> longDevNull = (e, sink) -> {}; 50 private BiConsumer<List<Long>, LongConsumer> longListFlattener = (list, sink) -> {
|
/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | LongStream.annotated.java | 50 public java.util.stream.LongStream peek(java.util.function.LongConsumer action); in peek() 62 public void forEach(java.util.function.LongConsumer action); in forEach() 64 public void forEachOrdered(java.util.function.LongConsumer action); in forEachOrdered() 129 public static interface Builder extends java.util.function.LongConsumer { 143 public void accept(long value, java.util.function.LongConsumer lc); in accept()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalLongTest.java | 30 import java.util.function.LongConsumer; 55 LongConsumer alwaysFails = value -> fail(); in testIfPresent() 59 LongConsumer recorder = (long value) -> reference.set(value); in testIfPresent()
|
D | SpliteratorsTest.java | 36 import java.util.function.LongConsumer; 76 LongConsumer alwaysFails = (long value) -> fail(); in testEmptyLongSpliterator() 407 longSp.forEachRemaining((LongConsumer) null); in test_primitive_spliterators_NPE() 413 longSp.tryAdvance((LongConsumer) null); in test_primitive_spliterators_NPE() 1028 public boolean tryAdvance(LongConsumer action) { in tryAdvance() 1049 assertFalse(spliterator.tryAdvance((LongConsumer) value -> { in testAbstractLongSpliterator_smallSize() 1054 assertTrue(resultSpliterator.tryAdvance(((LongConsumer) value -> { in testAbstractLongSpliterator_smallSize() 1057 assertTrue(resultSpliterator.tryAdvance(((LongConsumer) value -> { in testAbstractLongSpliterator_smallSize() 1078 assertTrue(resultSpliterator.tryAdvance(((LongConsumer) value -> { in testAbstractLongSpliterator_largeSize() 1081 assertTrue(resultSpliterator.tryAdvance(((LongConsumer) value -> { in testAbstractLongSpliterator_largeSize() [all …]
|
D | PrimitiveIteratorTest.java | 28 import java.util.function.LongConsumer; 149 cit.forEachRemaining((LongConsumer) null); in testLongIterator_forEachRemaining_Consumer()
|
/libcore/ojluni/src/test/java/util/Optional/ |
D | BasicLong.java | 37 import java.util.function.LongConsumer; 159 OptionalLong receiver, LongConsumer action, Runnable emptyAction) { in OptionalLong_ifPresentOrElse() 162 MethodType.methodType(void.class, LongConsumer.class, Runnable.class); in OptionalLong_ifPresentOrElse()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TeeOpTest.java | 36 import java.util.function.LongConsumer; 117 class RecordingConsumer extends AbstractRecordingConsumer<Long> implements LongConsumer { in testLongOps()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 346 public boolean tryAdvance(java.util.function.LongConsumer consumer) { in tryAdvance() 350 public void forEachRemaining(java.util.function.LongConsumer consumer) { in forEachRemaining()
|