Home
last modified time | relevance | path

Searched refs:DoubleConsumer (Results 1 – 25 of 37) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DDoubleStreamTestScenario.java31 import java.util.function.DoubleConsumer;
52 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_FOR_EACH_WITH_CLOSE()
64 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_TO_ARRAY()
73 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_ITERATOR()
82 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR()
91 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
99 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_FOREACH()
106 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
114 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in PAR_STREAM_FOR_EACH_ORDERED()
123 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in PAR_STREAM_SPLITERATOR()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DDoubleStreamTestScenario.java31 import java.util.function.DoubleConsumer;
48 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_TO_ARRAY()
69 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_ITERATOR()
78 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR()
87 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
95 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_FOREACH()
102 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
110 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in PAR_STREAM_FOR_EACH_ORDERED()
119 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in PAR_STREAM_SPLITERATOR()
[all …]
DSpliteratorTestHelper.java128 class BoxingAdapter implements Consumer<Double>, DoubleConsumer { in testDoubleSpliterator()
188 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((DoubleConsumer) null)); in testNullPointerException()
189 … executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((DoubleConsumer) null)); in testNullPointerException()
704 static void mixedTraverseAndSplit(DoubleConsumer b, Spliterator.OfDouble splTop) { in mixedTraverseAndSplit()
/libcore/ojluni/src/main/java/java/util/
DSpliterator.java28 import java.util.function.DoubleConsumer;
772 public interface OfDouble extends OfPrimitive<Double, DoubleConsumer, OfDouble> {
778 boolean tryAdvance(DoubleConsumer action); in tryAdvance()
781 default void forEachRemaining(DoubleConsumer action) { in forEachRemaining()
797 if (action instanceof DoubleConsumer) { in tryAdvance()
798 return tryAdvance((DoubleConsumer) action); in tryAdvance()
804 return tryAdvance((DoubleConsumer) action::accept); in tryAdvance()
821 if (action instanceof DoubleConsumer) { in forEachRemaining()
822 forEachRemaining((DoubleConsumer) action); in forEachRemaining()
828 forEachRemaining((DoubleConsumer) action::accept); in forEachRemaining()
DPrimitiveIterator.java28 import java.util.function.DoubleConsumer;
233 public static interface OfDouble extends PrimitiveIterator<Double, DoubleConsumer> {
259 default void forEachRemaining(DoubleConsumer action) { in forEachRemaining()
290 if (action instanceof DoubleConsumer) { in forEachRemaining()
291 forEachRemaining((DoubleConsumer) action); in forEachRemaining()
298 forEachRemaining((DoubleConsumer) action::accept); in forEachRemaining()
DOptionalDouble.java27 import java.util.function.DoubleConsumer;
136 public void ifPresent(DoubleConsumer consumer) { in ifPresent()
DDoubleSummaryStatistics.java27 import java.util.function.DoubleConsumer;
62 public class DoubleSummaryStatistics implements DoubleConsumer {
DSpliterators.java28 import java.util.function.DoubleConsumer;
803 class Adapter implements PrimitiveIterator.OfDouble, DoubleConsumer { in iterator()
880 extends EmptySpliterator<Double, Spliterator.OfDouble, DoubleConsumer>
1192 public void forEachRemaining(DoubleConsumer action) { in forEachRemaining()
1203 public boolean tryAdvance(DoubleConsumer action) { in tryAdvance()
1623 static final class HoldingDoubleConsumer implements DoubleConsumer {
2094 public void forEachRemaining(DoubleConsumer action) { in forEachRemaining()
2100 public boolean tryAdvance(DoubleConsumer action) { in tryAdvance()
DSplittableRandom.java29 import java.util.function.DoubleConsumer;
971 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance()
982 public void forEachRemaining(DoubleConsumer consumer) { in forEachRemaining()
DRandom.java29 import java.util.function.DoubleConsumer;
1136 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance()
1147 public void forEachRemaining(DoubleConsumer consumer) { in forEachRemaining()
/libcore/luni/src/test/java/libcore/java/util/function/
DDoubleConsumerTest.java21 import java.util.function.DoubleConsumer;
27 DoubleConsumer one = d -> sb.append("one:" + d + ","); in testAndThen()
28 DoubleConsumer two = d -> sb.append("two:" + d); in testAndThen()
35 DoubleConsumer one = s -> {}; in testAndThen_null()
/libcore/ojluni/src/main/java/java/util/function/
DDoubleConsumer.java42 public interface DoubleConsumer { interface
63 default DoubleConsumer andThen(DoubleConsumer after) { in andThen()
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java39 import java.util.function.DoubleConsumer;
222 DoubleStream peek(DoubleConsumer action); in peek()
296 void forEach(DoubleConsumer action); in forEach()
310 void forEachOrdered(DoubleConsumer action); in forEachOrdered()
849 public interface Builder extends DoubleConsumer {
DDoublePipeline.java36 import java.util.function.DoubleConsumer;
98 private static DoubleConsumer adapt(Sink<Double> sink) { in adapt()
99 if (sink instanceof DoubleConsumer) { in adapt()
100 return (DoubleConsumer) sink; in adapt()
159 DoubleConsumer adaptedSink = adapt(sink); in forEachWithCancel()
317 public final DoubleStream peek(DoubleConsumer action) {
370 public void forEach(DoubleConsumer consumer) {
375 public void forEachOrdered(DoubleConsumer consumer) {
560 public void forEach(DoubleConsumer consumer) {
570 public void forEachOrdered(DoubleConsumer consumer) {
DNode.java29 import java.util.function.DoubleConsumer;
460 …interface OfDouble extends OfPrimitive<Double, DoubleConsumer, double[], Spliterator.OfDouble, OfD…
472 if (consumer instanceof DoubleConsumer) { in forEach()
473 forEach((DoubleConsumer) consumer); in forEach()
511 for (int i = 0; i < from && spliterator.tryAdvance((DoubleConsumer) e -> { }); i++) { } in truncate()
512 … for (int i = 0; (i < size) && spliterator.tryAdvance((DoubleConsumer) nodeBuilder); i++) { } in truncate()
DSink.java29 import java.util.function.DoubleConsumer;
224 interface OfDouble extends Sink<Double>, DoubleConsumer {
DStreamSpliterators.java34 import java.util.function.DoubleConsumer;
472 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance()
481 public void forEachRemaining(DoubleConsumer consumer) { in forEachRemaining()
596 extends OfPrimitive<Double, DoubleConsumer, Spliterator.OfDouble>
868 … static final class OfDouble extends OfPrimitive<Double, Spliterator.OfDouble, DoubleConsumer>
887 protected DoubleConsumer emptyConsumer() { in emptyConsumer()
1200 … extends OfPrimitive<Double, DoubleConsumer, ArrayBuffer.OfDouble, Spliterator.OfDouble>
1201 implements Spliterator.OfDouble, DoubleConsumer {
1219 protected void acceptConsumed(DoubleConsumer action) { in acceptConsumed()
1428 public boolean tryAdvance(DoubleConsumer action) { in tryAdvance()
[all …]
DForEachOps.java33 import java.util.function.DoubleConsumer;
115 public static TerminalOp<Double, Void> makeDouble(DoubleConsumer action, in makeDouble()
233 final DoubleConsumer consumer;
235 OfDouble(DoubleConsumer consumer, boolean ordered) { in OfDouble()
DSpinedBuffer.java36 import java.util.function.DoubleConsumer;
956 extends SpinedBuffer.OfPrimitive<Double, double[], DoubleConsumer>
957 implements DoubleConsumer {
966 if (consumer instanceof DoubleConsumer) { in forEach()
967 forEach((DoubleConsumer) consumer); in forEach()
994 DoubleConsumer consumer) { in arrayForEach()
1037 void arrayForOne(double[] array, int index, DoubleConsumer consumer) { in spliterator()
DStreams.java31 import java.util.function.DoubleConsumer;
674 public boolean tryAdvance(DoubleConsumer action) { in tryAdvance()
688 public void forEachRemaining(DoubleConsumer action) { in forEachRemaining()
832 extends ConcatSpliterator.OfPrimitive<Double, DoubleConsumer, Spliterator.OfDouble>
/libcore/luni/src/test/java/libcore/java/util/
DOptionalDoubleTest.java27 import java.util.function.DoubleConsumer;
52 DoubleConsumer alwaysFails = value -> fail(); in testIfPresent()
56 DoubleConsumer recorder = value -> reference.set(value); in testIfPresent()
DPrimitiveIteratorTest.java26 import java.util.function.DoubleConsumer;
196 cit.forEachRemaining((DoubleConsumer) null); in testDoubleIterator_forEachRemaining_Consumer()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTeeOpTest.java34 import java.util.function.DoubleConsumer;
138 … class RecordingConsumer extends AbstractRecordingConsumer<Double> implements DoubleConsumer { in testDoubleOps()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java28 import java.util.function.DoubleConsumer;
230 n.forEach((DoubleConsumer) _l::add); in testDoubleIteration()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java43 import java.util.function.DoubleConsumer;
877 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance()
888 public void forEachRemaining(DoubleConsumer consumer) { in forEachRemaining()

12