Home
last modified time | relevance | path

Searched refs:forEachRemaining (Results 1 – 25 of 83) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/util/
DPrimitiveIterator.java80 void forEachRemaining(T_CONS action); in forEachRemaining() method
112 default void forEachRemaining(IntConsumer action) { in forEachRemaining() method
141 default void forEachRemaining(Consumer<? super Integer> action) { in forEachRemaining() method
143 forEachRemaining((IntConsumer) action); in forEachRemaining()
150 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
186 default void forEachRemaining(LongConsumer action) { in forEachRemaining() method
215 default void forEachRemaining(Consumer<? super Long> action) { in forEachRemaining() method
217 forEachRemaining((LongConsumer) action); in forEachRemaining()
224 forEachRemaining((LongConsumer) action::accept); in forEachRemaining()
259 default void forEachRemaining(DoubleConsumer action) { in forEachRemaining() method
[all …]
DSpliterator.java325 default void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() method
635 default void forEachRemaining(T_CONS action) { in forEachRemaining() method
653 default void forEachRemaining(IntConsumer action) { in forEachRemaining() method
691 default void forEachRemaining(Consumer<? super Integer> action) { in forEachRemaining() method
693 forEachRemaining((IntConsumer) action); in forEachRemaining()
699 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
717 default void forEachRemaining(LongConsumer action) { in forEachRemaining() method
755 default void forEachRemaining(Consumer<? super Long> action) { in forEachRemaining() method
757 forEachRemaining((LongConsumer) action); in forEachRemaining()
763 forEachRemaining((LongConsumer) action::accept); in forEachRemaining()
[all …]
DSpliterators.java849 public void forEachRemaining(C consumer) { in forEachRemaining() method in Spliterators.EmptySpliterator
942 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() method in Spliterators.ArraySpliterator
1026 public void forEachRemaining(IntConsumer action) { in forEachRemaining() method in Spliterators.IntArraySpliterator
1109 public void forEachRemaining(LongConsumer action) { in forEachRemaining() method in Spliterators.LongArraySpliterator
1192 public void forEachRemaining(DoubleConsumer action) { in forEachRemaining() method in Spliterators.DoubleArraySpliterator
1794 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() method in Spliterators.IteratorSpliterator
1801 i.forEachRemaining(action); in forEachRemaining()
1906 public void forEachRemaining(IntConsumer action) { in forEachRemaining() method in Spliterators.IntIteratorSpliterator
1908 it.forEachRemaining(action); in forEachRemaining()
2000 public void forEachRemaining(LongConsumer action) { in forEachRemaining() method in Spliterators.LongIteratorSpliterator
[all …]
DIterator.java113 default void forEachRemaining(Consumer<? super E> action) { in forEachRemaining() method
DSplittableRandom.java869 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining() method in SplittableRandom.RandomIntsSpliterator
925 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining() method in SplittableRandom.RandomLongsSpliterator
982 public void forEachRemaining(DoubleConsumer consumer) { in forEachRemaining() method in SplittableRandom.RandomDoublesSpliterator
/libcore/luni/src/test/java/libcore/java/util/
DPrimitiveIteratorTest.java96 cit.forEachRemaining((int i) -> recorder.add(i)); in testIntIterator_forEachRemaining_Consumer()
102 cit.forEachRemaining((IntConsumer) null); in testIntIterator_forEachRemaining_Consumer()
113 cit.forEachRemaining((Integer i) -> recorder.add(i)); in testIntIterator_forEachRemaining_boxedConsumer()
121 cit.forEachRemaining((int i) -> recorder2.add(i)); in testIntIterator_forEachRemaining_boxedConsumer()
126 cit.forEachRemaining((Consumer<Integer>) null); in testIntIterator_forEachRemaining_boxedConsumer()
143 cit.forEachRemaining((long i) -> recorder.add(i)); in testLongIterator_forEachRemaining_Consumer()
149 cit.forEachRemaining((LongConsumer) null); in testLongIterator_forEachRemaining_Consumer()
160 cit.forEachRemaining((Long i) -> recorder.add(i)); in testLongIterator_forEachRemaining_boxedConsumer()
168 cit.forEachRemaining((long i) -> recorder2.add(i)); in testLongIterator_forEachRemaining_boxedConsumer()
173 cit.forEachRemaining((Consumer<Long>) null); in testLongIterator_forEachRemaining_boxedConsumer()
[all …]
DSpliteratorsTest.java47 empty.forEachRemaining(alwaysFails); in testEmptyIntSpliterator()
48 empty.forEachRemaining(alwaysFailsBoxed); in testEmptyIntSpliterator()
61 empty.forEachRemaining(alwaysFails); in testEmptyRefSpliterator()
77 empty.forEachRemaining(alwaysFails); in testEmptyLongSpliterator()
78 empty.forEachRemaining(alwaysFailsBoxed); in testEmptyLongSpliterator()
94 empty.forEachRemaining(alwaysFails); in testEmptyDoubleSpliterator()
95 empty.forEachRemaining(alwaysFailsBoxed); in testEmptyDoubleSpliterator()
235 split2.forEachRemaining((int value) -> recorder.add(value)); in test_spliterator_int()
241 split1.forEachRemaining((int value) -> recorder.add(value)); in test_spliterator_int()
242 intSp.forEachRemaining((int value) -> recorder.add(value)); in test_spliterator_int()
[all …]
DForEachRemainingTester.java58 lit.forEachRemaining((T i) -> recorder.add(i)); in test_forEachRemaining_list()
72 collection.iterator().forEachRemaining((T i) -> recorder.add(i)); in test_forEachRemaining()
80 it.forEachRemaining((T i) -> recorder.add(i)); in test_forEachRemaining()
92 collection.iterator().forEachRemaining(null); in test_forEachRemaining_NPE()
102 collection.iterator().forEachRemaining(i -> collection.add(i)); in test_forEachRemaining_CME()
111 collection.iterator().forEachRemaining(null); in test_forEachRemaining_NPE_list()
121 collection.iterator().forEachRemaining(i -> collection.add(i)); in test_forEachRemaining_CME_list()
DSpliteratorTester.java53 spliterator.forEachRemaining(consumer); in runBasicIterationTests()
58 spliterator.forEachRemaining((T) -> fail()); in runBasicIterationTests()
75 spliterator.forEachRemaining(consumer); in runBasicIterationTests_unordered()
82 spliterator.forEachRemaining((T) -> fail()); in runBasicIterationTests_unordered()
88 spliterator.forEachRemaining(value -> recorder.add(value)); in recordAndAssertBasicIteration()
106 spliterator.forEachRemaining(null); in testSpliteratorNPE()
188 spliterator.forEachRemaining(value -> result.add(value)); in toList()
281 spliterator.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
284 split1.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
311 spliterator.forEachRemaining(value -> elements.add(value)); in runSortedTests()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java155 spliterator.forEachRemaining(addToFromForEach); in testSpliterator()
178 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((IntConsumer) null)); in testNullPointerException()
183 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((LongConsumer) null)); in testNullPointerException()
188 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((DoubleConsumer) null)); in testNullPointerException()
192 executeAndCatch(NullPointerException.class, () -> sp.forEachRemaining(null)); in testNullPointerException()
209 spliterator.forEachRemaining(addToFromForEach); in testForEach()
212 spliterator.forEachRemaining(boxingAdapter.apply( in testForEach()
242 spliterator.forEachRemaining(boxingAdapter.apply( in testTryAdvance()
271 spliterator.forEachRemaining(addToDest); in testMixedTryAdvanceForEach()
274 spliterator.forEachRemaining(boxingAdapter.apply( in testMixedTryAdvanceForEach()
[all …]
DTestData.java61 spliterator().forEachRemaining(target::add); in into()
301 spliterator().forEachRemaining((IntConsumer) target::add); in into()
326 spliterator().forEachRemaining((LongConsumer) target::add); in into()
351 spliterator().forEachRemaining((DoubleConsumer) target::add); in into()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java155 spliterator.forEachRemaining(addToFromForEach); in testSpliterator()
178 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((IntConsumer) null)); in testNullPointerException()
183 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((LongConsumer) null)); in testNullPointerException()
188 … executeAndCatch(NullPointerException.class, () -> psp.forEachRemaining((DoubleConsumer) null)); in testNullPointerException()
192 executeAndCatch(NullPointerException.class, () -> sp.forEachRemaining(null)); in testNullPointerException()
209 spliterator.forEachRemaining(addToFromForEach); in testForEach()
212 spliterator.forEachRemaining(boxingAdapter.apply( in testForEach()
242 spliterator.forEachRemaining(boxingAdapter.apply( in testTryAdvance()
271 spliterator.forEachRemaining(addToDest); in testMixedTryAdvanceForEach()
274 spliterator.forEachRemaining(boxingAdapter.apply( in testMixedTryAdvanceForEach()
[all …]
DTestData.java60 spliterator().forEachRemaining(target::add); in into()
300 spliterator().forEachRemaining((IntConsumer) target::add); in into()
325 spliterator().forEachRemaining((LongConsumer) target::add); in into()
350 spliterator().forEachRemaining((DoubleConsumer) target::add); in into()
/libcore/ojluni/src/main/java/java/util/stream/
DStreams.java101 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining() method in Streams.RangeIntSpliterator
226 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining() method in Streams.RangeLongSpliterator
415 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() method in Streams.StreamBuilderImpl
506 public void forEachRemaining(IntConsumer action) { in forEachRemaining() method in Streams.IntStreamBuilderImpl
597 public void forEachRemaining(LongConsumer action) { in forEachRemaining() method in Streams.LongStreamBuilderImpl
688 public void forEachRemaining(DoubleConsumer action) { in forEachRemaining() method in Streams.DoubleStreamBuilderImpl
740 public void forEachRemaining(Consumer<? super T> consumer) {
742 aSpliterator.forEachRemaining(consumer);
743 bSpliterator.forEachRemaining(consumer);
808 public void forEachRemaining(T_CONS action) { in forEachRemaining() method in Streams.OfPrimitive
[all …]
DStreamSpliterators.java307 public void forEachRemaining(Consumer<? super P_OUT> consumer) { in forEachRemaining() method
365 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining() method in StreamSpliterators.AbstractWrappingSpliterator.IntWrappingSpliterator
423 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining() method in StreamSpliterators.AbstractWrappingSpliterator.LongWrappingSpliterator
481 public void forEachRemaining(DoubleConsumer consumer) { in forEachRemaining() method in StreamSpliterators.AbstractWrappingSpliterator.DoubleWrappingSpliterator
530 public void forEachRemaining(Consumer<? super T> consumer) { in forEachRemaining() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator
531 get().forEachRemaining(consumer); in forEachRemaining()
572 public void forEachRemaining(T_CONS consumer) { in forEachRemaining() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator.OfPrimitive
573 get().forEachRemaining(consumer); in forEachRemaining()
729 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() method in StreamSpliterators.AbstractWrappingSpliterator.SliceSpliterator.OfRef
740 s.forEachRemaining(action); in forEachRemaining()
[all …]
DNode.java333 spliterator().forEachRemaining(consumer); in forEach()
406 spliterator().forEachRemaining(consumer); in forEach()
479 spliterator().forEachRemaining(consumer); in forEach()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamSpliteratorTest.java95 public void forEachRemaining(Consumer<? super T> consumer) { in forEachRemaining() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator
97 sp.forEachRemaining(consumer); in forEachRemaining()
141 public void forEachRemaining(Consumer<? super Integer> consumer) { in forEachRemaining() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfInt
142 Spliterator.OfInt.super.forEachRemaining(consumer); in forEachRemaining()
153 public void forEachRemaining(IntConsumer consumer) { in forEachRemaining() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfInt
155 psp.forEachRemaining(consumer); in forEachRemaining()
182 public void forEachRemaining(Consumer<? super Long> consumer) { in forEachRemaining() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfLong
183 Spliterator.OfLong.super.forEachRemaining(consumer); in forEachRemaining()
194 public void forEachRemaining(LongConsumer consumer) { in forEachRemaining() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfLong
196 psp.forEachRemaining(consumer); in forEachRemaining()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java147 public void forEachRemaining(IntConsumer block) { in chars() method in CharSequence.CharIterator
182 public void forEachRemaining(IntConsumer block) { in codePoints() method in CharSequence.CodePointIterator
/libcore/ojluni/annotations/sdk/nullability/java/util/
DIterator.annotated.java35 …public default void forEachRemaining(@libcore.util.NonNull Consumer<? super @libcore.util.NullFrom… in forEachRemaining() method
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java241 public void forEachRemaining(java.util.function.DoubleConsumer consumer) { in forEachRemaining() method in Random.RandomDoublesSpliterator
295 public void forEachRemaining(java.util.function.IntConsumer consumer) { in forEachRemaining() method in Random.RandomIntsSpliterator
350 public void forEachRemaining(java.util.function.LongConsumer consumer) { in forEachRemaining() method in Random.RandomLongsSpliterator
DArrayDeque.java244 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining() method in ArrayDeque.DeqIterator
270 public void forEachRemaining(java.util.function.Consumer<? super E> consumer) { in forEachRemaining() method in ArrayDeque.DeqSpliterator
DVector.java303 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining() method in Vector.Itr
376 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining() method in Vector.VectorSpliterator
DLinkedList.java321 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining() method in LinkedList.LLSpliterator
395 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining() method in LinkedList.ListItr
/libcore/ojluni/src/main/java/java/nio/
DCharBufferSpliterator.java64 public void forEachRemaining(IntConsumer action) { in forEachRemaining() method in CharBufferSpliterator
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSpinedBufferTest.java106 spliterator.forEachRemaining(contentOfLastSplit::add); in testLastSplit()
181 spliterator.forEachRemaining((IntConsumer) contentOfLastSplit::add); in testIntLastSplit()
256 spliterator.forEachRemaining((LongConsumer) contentOfLastSplit::add); in testLongLastSplit()
332 spliterator.forEachRemaining((DoubleConsumer) contentOfLastSplit::add); in testLongLastSplit()

1234