Home
last modified time | relevance | path

Searched refs:forEach (Results 1 – 25 of 98) sorted by relevance

1234

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamCloseTest.java43 ints.forEach(i -> {}); in testEmptyCloseHandler()
53 ints.forEach(i -> {}); in testOneCloseHandler()
59 ints.forEach(i -> {}); in testOneCloseHandler()
65 ints.forEach(i -> {}); in testOneCloseHandler()
71 ints.forEach(i -> {}); in testOneCloseHandler()
83 ints.forEach(i -> {}); in testTwoCloseHandlers()
89 ints.forEach(i -> {}); in testTwoCloseHandlers()
95 ints.forEach(i -> {}); in testTwoCloseHandlers()
101 ints.forEach(i -> {}); in testTwoCloseHandlers()
115 ints.forEach(i -> {}); in testCascadedExceptions()
[all …]
DStreamBuilderTest.java94 IntStream.range(0, size).boxed().forEach(sb); in testAfterBuilding()
106 IntStream.range(0, s).boxed().forEach(sb); in testStreamBuilder()
112 IntStream.range(0, s).boxed().forEach(i -> { in testStreamBuilder()
156 IntStream.range(0, size).forEach(sb); in testIntAfterBuilding()
168 IntStream.range(0, s).forEach(sb); in testIntStreamBuilder()
174 IntStream.range(0, s).forEach(i -> { in testIntStreamBuilder()
218 LongStream.range(0, size).forEach(sb); in testLongAfterBuilding()
230 LongStream.range(0, s).forEach(sb); in testLongStreamBuilder()
236 LongStream.range(0, s).forEach(i -> { in testLongStreamBuilder()
279 IntStream.range(0, size).asDoubleStream().forEach(sb); in testDoubleAfterBuilding()
[all …]
DCountTest.java53 data.stream().forEach(e -> expectedCount.incrementAndGet()); in testOps()
64 data.stream().forEach(e -> expectedCount.incrementAndGet()); in testOps()
75 data.stream().forEach(e -> expectedCount.incrementAndGet()); in testOps()
86 data.stream().forEach(e -> expectedCount.incrementAndGet()); in testOps()
DIntPrimitiveOpsTests.java66 IntStream.range(1, 10).filter(i -> i % 2 == 0).forEach(i -> { sum[0] = sum[0] + i; }); in testForEach()
73 IntStream.range(1, 10).parallel().filter(i -> i % 2 == 0).forEach(ai::addAndGet); in testParForEach()
158 IntStream.range(1, 1000).sequential().forEach(consumer); in testSequential()
164 IntStream.range(1, 1000).parallel().sequential().forEach(consumer); in testSequential()
DLongPrimitiveOpsTests.java66 LongStream.range(1, 10).filter(i -> i % 2 == 0).forEach(i -> { sum[0] = sum[0] + i; }); in testForEach()
73 LongStream.range(1, 10).parallel().filter(i -> i % 2 == 0).forEach(ai::addAndGet); in testParForEach()
158 LongStream.range(1, 1000).sequential().forEach(consumer); in testSequential()
164 LongStream.range(1, 1000).parallel().sequential().forEach(consumer); in testSequential()
DForEachOpTest.java61 s.forEach(e -> count.incrementAndGet()); in testForEach()
69 s.forEach(sum::addAndGet); in testForEach()
114 s.forEach(l::add);
162 s.forEach(l::add);
210 s.forEach(l::add);
258 s.forEach(l::add);
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandom8Test.java81 r.ints(size).parallel().forEach(x -> counter.increment()); in testIntsCount()
96 r.longs(size).parallel().forEach(x -> counter.increment()); in testLongsCount()
111 r.doubles(size).parallel().forEach(x -> counter.increment()); in testDoublesCount()
127 r.ints(size, lo, hi).parallel().forEach( in testBoundedInts()
146 r.longs(size, lo, hi).parallel().forEach( in testBoundedLongs()
165 r.doubles(size, lo, hi).parallel().forEach( in testBoundedDoubles()
181 r.ints().limit(size).parallel().forEach(x -> counter.increment()); in testUnsizedIntsCount()
192 r.longs().limit(size).parallel().forEach(x -> counter.increment()); in testUnsizedLongsCount()
203 r.doubles().limit(size).parallel().forEach(x -> counter.increment()); in testUnsizedDoublesCount()
214 r.ints().limit(size).forEach(x -> counter.increment()); in testUnsizedIntsCountSeq()
[all …]
DCollection8Test.java55 c.stream().forEach(spy); in testForEach()
59 c.stream().forEach(spy); in testForEach()
64 c.stream().forEach(spy); in testForEach()
71 c.stream().forEach(spy); in testForEach()
88 c.stream().forEach((x) -> { assertSame(x, elt); }); }; in testForEachConcurrentStressTest()
/libcore/ojluni/src/main/java/java/util/stream/
DNode.java81 void forEach(Consumer<? super T> consumer); in forEach() method
247 void forEach(T_CONS action); in forEach() method
326 default void forEach(Consumer<? super Integer> consumer) { in forEach() method
328 forEach((IntConsumer) consumer); in forEach()
399 default void forEach(Consumer<? super Long> consumer) { in forEach() method
401 forEach((LongConsumer) consumer); in forEach()
472 default void forEach(Consumer<? super Double> consumer) { in forEach() method
474 forEach((DoubleConsumer) consumer); in forEach()
DNodes.java572 public void forEach(T_CONS consumer) { } in forEach() method in Nodes.EmptyNode
682 public void forEach(Consumer<? super T> consumer) { in forEach() method in Nodes.ArrayNode
730 public void forEach(Consumer<? super T> consumer) { in forEach() method in Nodes.CollectionNode
731 c.forEach(consumer); in forEach()
811 public void forEach(Consumer<? super T> consumer) { in forEach() method in Nodes.ConcNode
812 left.forEach(consumer); in forEach()
813 right.forEach(consumer); in forEach()
851 public void forEach(T_CONS consumer) { in forEach() method in Nodes.ConcNode.OfPrimitive
852 left.forEach(consumer); in forEach()
853 right.forEach(consumer); in forEach()
[all …]
DSpinedBuffer.java246 public void forEach(Consumer<? super E> consumer) { in forEach() method in SpinedBuffer
273 forEach(list::add); in toString()
472 public abstract void forEach(Consumer<? super E> consumer); in forEach() method in SpinedBuffer.OfPrimitive
591 public void forEach(T_CONS consumer) { in forEach() method in SpinedBuffer.OfPrimitive
740 public void forEach(Consumer<? super Integer> consumer) { in forEach() method in SpinedBuffer.OfInt
742 forEach((IntConsumer) consumer); in forEach()
857 public void forEach(Consumer<? super Long> consumer) { in forEach() method in SpinedBuffer.OfLong
859 forEach((LongConsumer) consumer); in forEach()
976 public void forEach(Consumer<? super Double> consumer) { in forEach() method in SpinedBuffer.OfDouble
978 forEach((DoubleConsumer) consumer); in forEach()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSplittableRandomTest.java397 r.ints(size).parallel().forEach(x -> counter.increment());
412 r.longs(size).parallel().forEach(x -> counter.increment());
427 r.doubles(size).parallel().forEach(x -> counter.increment());
443 r.ints(size, lo, hi).parallel().forEach(
462 r.longs(size, lo, hi).parallel().forEach(
481 r.doubles(size, lo, hi).parallel().forEach(
497 r.ints().limit(size).parallel().forEach(x -> counter.increment());
508 r.longs().limit(size).parallel().forEach(x -> counter.increment());
519 r.doubles().limit(size).parallel().forEach(x -> counter.increment());
530 r.ints().limit(size).forEach(x -> counter.increment());
[all …]
DExecutorCompletionService9Test.java65 solvers.forEach(cs::submit); in solveAll()
82 solvers.forEach(solver -> futures.add(cs.submit(solver))); in solveAny()
93 futures.forEach(future -> future.cancel(true)); in solveAny()
DCollection8Test.java158 c.forEach(alwaysThrows);
202 () -> c.forEach(null),
350 case 2: c.forEach(survivors::add); break;
516 c.forEach(forEached::add);
517 c.stream().forEach(streamForEached::add);
518 c.parallelStream().forEach(parallelStreamForEached::add);
657 c.stream().forEach(spy);
661 c.stream().forEach(spy);
666 c.stream().forEach(spy);
673 c.stream().forEach(spy);
[all …]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSpinedBufferTest.java68 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
72 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
76 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
80 Arrays.stream(array).boxed().forEach(sb); in createSpinedBuffer()
136 sb.forEach(list2::add); in testSpinedBuffer()
154 Arrays.stream(array).forEach(sb); in createIntSpinedBuffer()
211 sb.forEach((int i) -> list2.add(i)); in testIntSpinedBuffer()
229 Arrays.stream(array).forEach(sb); in createLongSpinedBuffer()
286 sb.forEach((long i) -> list2.add(i)); in testLongSpinedBuffer()
305 Arrays.stream(array).forEach(sb); in createDoubleSpinedBuffer()
[all …]
DNodeBuilderTest.java85 n.forEach(_l::add); in testIteration()
130 n.forEach((IntConsumer) _l::add); in testIntIteration()
180 n.forEach((LongConsumer) _l::add); in testLongIteration()
230 n.forEach((DoubleConsumer) _l::add); in testDoubleIteration()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DIterable.annotated.java36 …public default void forEach(@NonNull Consumer<? super T> action) { throw new RuntimeException("Stu… in forEach() method
/libcore/ojluni/src/main/java/java/lang/
DIterable.java72 default void forEach(Consumer<? super T> action) { in forEach() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedHashMapTest.java721 map.forEach((k, v) -> output.put(k,v)); in test_forEach()
725 map.keySet().forEach((k) -> setOutput.add(k)); in test_forEach()
729 map.values().forEach((v) -> setOutput.add(v)); in test_forEach()
733 map.entrySet().forEach((v) -> entrySetOutput.add(v)); in test_forEach()
741 map.forEach(null); in test_forEach_NPE()
746 map.keySet().forEach(null); in test_forEach_NPE()
751 map.values().forEach(null); in test_forEach_NPE()
756 map.entrySet().forEach(null); in test_forEach_NPE()
769 map.forEach(new java.util.function.BiConsumer<String, String>() { in test_forEach_CME()
783 map.keySet().forEach(new java.util.function.Consumer<String>() { in test_forEach_CME()
[all …]
DHashMapTest.java705 map.forEach((k, v) -> output.put(k,v)); in test_forEach()
709 map.keySet().forEach((k) -> setOutput.add(k)); in test_forEach()
713 map.values().forEach((v) -> setOutput.add(v)); in test_forEach()
717 map.entrySet().forEach((v) -> entrySetOutput.add(v)); in test_forEach()
724 map.forEach(null); in test_forEach_NPE()
729 map.keySet().forEach(null); in test_forEach_NPE()
734 map.values().forEach(null); in test_forEach_NPE()
739 map.entrySet().forEach(null); in test_forEach_NPE()
752 map.forEach(new java.util.function.BiConsumer<String, String>() { in test_forEach_CME()
766 map.keySet().forEach(new java.util.function.Consumer<String>() { in test_forEach_CME()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DIntStreamTestScenario.java56 s.forEach(b); in STREAM_FOR_EACH_WITH_CLOSE()
106 m.apply(data.parallelStream()).sequential().forEach(b); in PAR_STREAM_SEQUENTIAL_FOR_EACH()
175 m.apply(data.parallelStream()).forEach(e -> { in PAR_STREAM_FOR_EACH()
189 m.apply(pipe1).forEach(e -> { in PAR_STREAM_FOR_EACH_CLEAR_SIZED()
DDoubleStreamTestScenario.java57 s.forEach(b); in STREAM_FOR_EACH_WITH_CLOSE()
107 m.apply(data.parallelStream()).sequential().forEach(b); in PAR_STREAM_SEQUENTIAL_FOR_EACH()
175 m.apply(data.parallelStream()).forEach(e -> { in PAR_STREAM_FOR_EACH()
189 m.apply(pipe1).forEach(e -> { in PAR_STREAM_FOR_EACH_CLEAR_SIZED()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DDoubleStreamTestScenario.java53 s.forEach(b); in STREAM_FOR_EACH_WITH_CLOSE()
103 m.apply(data.parallelStream()).sequential().forEach(b); in PAR_STREAM_SEQUENTIAL_FOR_EACH()
171 m.apply(data.parallelStream()).forEach(e -> { in PAR_STREAM_FOR_EACH()
185 m.apply(pipe1).forEach(e -> { in PAR_STREAM_FOR_EACH_CLEAR_SIZED()
DIntStreamTestScenario.java53 s.forEach(b); in STREAM_FOR_EACH_WITH_CLOSE()
103 m.apply(data.parallelStream()).sequential().forEach(b); in PAR_STREAM_SEQUENTIAL_FOR_EACH()
172 m.apply(data.parallelStream()).forEach(e -> { in PAR_STREAM_FOR_EACH()
186 m.apply(pipe1).forEach(e -> { in PAR_STREAM_FOR_EACH_CLEAR_SIZED()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLinkedHashMap.java139 public void forEach(java.util.function.BiConsumer<? super K, ? super V> action) { in forEach() method in LinkedHashMap
201 public void forEach(java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { in forEach() method in LinkedHashMap.LinkedEntrySet
285 public void forEach(java.util.function.Consumer<? super K> action) { in forEach() method in LinkedHashMap.LinkedKeySet
326 public void forEach(java.util.function.Consumer<? super V> action) { in forEach() method in LinkedHashMap.LinkedValues

1234