/libcore/ojluni/src/main/java/java/util/ |
D | Spliterator.java | 309 boolean tryAdvance(Consumer<? super T> action); in tryAdvance() method 326 do { } while (tryAdvance(action)); in forEachRemaining() 617 boolean tryAdvance(T_CONS action); in tryAdvance() method 636 do { } while (tryAdvance(action)); in forEachRemaining() 650 boolean tryAdvance(IntConsumer action); in tryAdvance() method 654 do { } while (tryAdvance(action)); in forEachRemaining() 668 default boolean tryAdvance(Consumer<? super Integer> action) { in tryAdvance() method 670 return tryAdvance((IntConsumer) action); in tryAdvance() 676 return tryAdvance((IntConsumer) action::accept); in tryAdvance() 714 boolean tryAdvance(LongConsumer action); in tryAdvance() method [all …]
|
D | Spliterators.java | 681 spliterator.tryAdvance(this); in iterator() 726 spliterator.tryAdvance(this); in iterator() 771 spliterator.tryAdvance(this); in iterator() 816 spliterator.tryAdvance(this); in iterator() 844 public boolean tryAdvance(C consumer) { in tryAdvance() method in Spliterators.EmptySpliterator 953 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() method in Spliterators.ArraySpliterator 1037 public boolean tryAdvance(IntConsumer action) { in tryAdvance() method in Spliterators.IntArraySpliterator 1120 public boolean tryAdvance(LongConsumer action) { in tryAdvance() method in Spliterators.LongArraySpliterator 1203 public boolean tryAdvance(DoubleConsumer action) { in tryAdvance() method in Spliterators.DoubleArraySpliterator 1311 if (s > 1 && tryAdvance(holder)) { in trySplit() [all …]
|
D | SplittableRandom.java | 858 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance() method in SplittableRandom.RandomIntsSpliterator 914 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() method in SplittableRandom.RandomLongsSpliterator 971 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance() method in SplittableRandom.RandomDoublesSpliterator
|
D | Random.java | 1025 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance() method in Random.RandomIntsSpliterator 1080 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() method in Random.RandomLongsSpliterator 1136 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance() method in Random.RandomDoublesSpliterator
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 44 empty.tryAdvance(alwaysFails); in testEmptyIntSpliterator() 45 empty.tryAdvance(alwaysFailsBoxed); in testEmptyIntSpliterator() 60 empty.tryAdvance(alwaysFails); in testEmptyRefSpliterator() 74 empty.tryAdvance(alwaysFails); in testEmptyLongSpliterator() 75 empty.tryAdvance(alwaysFailsBoxed); in testEmptyLongSpliterator() 91 empty.tryAdvance(alwaysFails); in testEmptyDoubleSpliterator() 92 empty.tryAdvance(alwaysFailsBoxed); in testEmptyDoubleSpliterator() 219 assertTrue(intSp.tryAdvance((Integer value) -> assertEquals(1, (int) value))); in test_spliterator_int() 220 assertTrue(intSp.tryAdvance((int value) -> assertEquals(2, (int) value))); in test_spliterator_int() 229 assertTrue(split1.tryAdvance((int value) -> recorder.add(value))); in test_spliterator_int() [all …]
|
D | SpliteratorTester.java | 49 boolean didAdvance = spliterator.tryAdvance(consumer); in runBasicIterationTests() 57 assertFalse(spliterator.tryAdvance(consumer)); in runBasicIterationTests() 68 assertFalse(spliterator.tryAdvance(consumer)); in runBasicIterationTests_unordered() 70 assertTrue(spliterator.tryAdvance(consumer)); in runBasicIterationTests_unordered() 81 assertFalse(spliterator.tryAdvance(consumer)); in runBasicIterationTests_unordered() 87 spliterator.tryAdvance(value -> recorder.add(value)); in recordAndAssertBasicIteration() 91 assertFalse(spliterator.tryAdvance(value -> recorder.add(value))); in recordAndAssertBasicIteration() 92 spliterator.tryAdvance(value -> fail()); in recordAndAssertBasicIteration() 100 spliterator.tryAdvance(null); in testSpliteratorNPE() 123 boolean didAdvance = spliterator.tryAdvance(value -> recorder.add(value)); in runBasicSplitTests() [all …]
|
D | AbstractListTest.java | 77 boolean didAdvance = spliterator.tryAdvance(value -> receivedValue.set(value)); in spliterator_lateBinding() 89 assertTrue(spliterator.tryAdvance(value -> {})); in spliterator_modification_failFast() 90 assertTrue(spliterator.tryAdvance(value -> {})); in spliterator_modification_failFast() 94 spliterator.tryAdvance(value -> receivedValue.set(value)); in spliterator_modification_failFast()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 179 executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((IntConsumer) null)); in testNullPointerException() 184 executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((LongConsumer) null)); in testNullPointerException() 189 … executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((DoubleConsumer) null)); in testNullPointerException() 193 executeAndCatch(NullPointerException.class, () -> sp.tryAdvance(null)); in testNullPointerException() 215 spliterator.tryAdvance(boxingAdapter.apply( in testForEach() 239 while (spliterator.tryAdvance(addToFromTryAdvance)) { } in testTryAdvance() 245 spliterator.tryAdvance(boxingAdapter.apply( in testTryAdvance() 270 for (int i = 0; i < 10 && spliterator.tryAdvance(addToDest); i++) { } in testMixedTryAdvanceForEach() 277 spliterator.tryAdvance(boxingAdapter.apply( in testMixedTryAdvanceForEach() 303 spliterator.tryAdvance(b); in testMixedTraverseAndSplit() [all …]
|
D | IntStreamTestScenario.java | 82 … for (Spliterator.OfInt spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 123 … for (Spliterator.OfInt spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR()
|
D | DoubleStreamTestScenario.java | 83 … for (Spliterator.OfDouble spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 124 …or (Spliterator.OfDouble spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR()
|
D | LongStreamTestScenario.java | 82 … for (Spliterator.OfLong spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 123 … for (Spliterator.OfLong spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 179 executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((IntConsumer) null)); in testNullPointerException() 184 executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((LongConsumer) null)); in testNullPointerException() 189 … executeAndCatch(NullPointerException.class, () -> psp.tryAdvance((DoubleConsumer) null)); in testNullPointerException() 193 executeAndCatch(NullPointerException.class, () -> sp.tryAdvance(null)); in testNullPointerException() 215 spliterator.tryAdvance(boxingAdapter.apply( in testForEach() 239 while (spliterator.tryAdvance(addToFromTryAdvance)) { } in testTryAdvance() 245 spliterator.tryAdvance(boxingAdapter.apply( in testTryAdvance() 270 for (int i = 0; i < 10 && spliterator.tryAdvance(addToDest); i++) { } in testMixedTryAdvanceForEach() 277 spliterator.tryAdvance(boxingAdapter.apply( in testMixedTryAdvanceForEach() 303 spliterator.tryAdvance(b); in testMixedTraverseAndSplit() [all …]
|
D | IntStreamTestScenario.java | 79 … for (Spliterator.OfInt spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 120 … for (Spliterator.OfInt spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR()
|
D | DoubleStreamTestScenario.java | 79 … for (Spliterator.OfDouble spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 120 …or (Spliterator.OfDouble spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR()
|
D | LongStreamTestScenario.java | 79 … for (Spliterator.OfLong spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR() 120 … for (Spliterator.OfLong spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); ) { in PAR_STREAM_SPLITERATOR()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 294 pusher = () -> spliterator.tryAdvance(bufferSink); 298 public boolean tryAdvance(Consumer<? super P_OUT> consumer) { in tryAdvance() method 316 do { } while (tryAdvance(consumer)); in forEachRemaining() 347 pusher = () -> spliterator.tryAdvance(bufferSink); in initPartialTraversalState() 356 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance() method in StreamSpliterators.AbstractWrappingSpliterator.IntWrappingSpliterator 374 do { } while (tryAdvance(consumer)); in forEachRemaining() 405 pusher = () -> spliterator.tryAdvance(bufferSink); in initPartialTraversalState() 414 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() method in StreamSpliterators.AbstractWrappingSpliterator.LongWrappingSpliterator 432 do { } while (tryAdvance(consumer)); in forEachRemaining() 463 pusher = () -> spliterator.tryAdvance(bufferSink); in initPartialTraversalState() [all …]
|
D | Streams.java | 83 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance() method in Streams.RangeIntSpliterator 208 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() method in Streams.RangeLongSpliterator 401 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() method in Streams.StreamBuilderImpl 492 public boolean tryAdvance(IntConsumer action) { in tryAdvance() method in Streams.IntStreamBuilderImpl 583 public boolean tryAdvance(LongConsumer action) { in tryAdvance() method in Streams.LongStreamBuilderImpl 674 public boolean tryAdvance(DoubleConsumer action) { in tryAdvance() method in Streams.DoubleStreamBuilderImpl 725 public boolean tryAdvance(Consumer<? super T> consumer) { 728 hasNext = aSpliterator.tryAdvance(consumer); 731 hasNext = bSpliterator.tryAdvance(consumer); 735 hasNext = bSpliterator.tryAdvance(consumer); [all …]
|
D | Node.java | 129 for (int i = 0; i < from && spliterator.tryAdvance(e -> { }); i++) { } in truncate() 130 for (int i = 0; (i < size) && spliterator.tryAdvance(nodeBuilder); i++) { } in truncate() 364 for (int i = 0; i < from && spliterator.tryAdvance((IntConsumer) e -> { }); i++) { } in truncate() 365 … for (int i = 0; (i < size) && spliterator.tryAdvance((IntConsumer) nodeBuilder); i++) { } in truncate() 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() 512 for (int i = 0; i < from && spliterator.tryAdvance((DoubleConsumer) e -> { }); i++) { } in truncate() 513 … for (int i = 0; (i < size) && spliterator.tryAdvance((DoubleConsumer) nodeBuilder); i++) { } in truncate()
|
D | Nodes.java | 1066 public boolean tryAdvance(Consumer<? super T> consumer) { in tryAdvance() method in Nodes.InternalNodeSpliterator.OfRef 1070 boolean hasNext = tryAdvanceSpliterator.tryAdvance(consumer); in tryAdvance() 1078 return tryAdvanceSpliterator.tryAdvance(consumer); in tryAdvance() 1105 while(tryAdvance(consumer)) { } in forEachRemaining() 1120 public boolean tryAdvance(T_CONS consumer) { in tryAdvance() method in Nodes.InternalNodeSpliterator.OfPrimitive 1124 boolean hasNext = tryAdvanceSpliterator.tryAdvance(consumer); in tryAdvance() 1132 return tryAdvanceSpliterator.tryAdvance(consumer); in tryAdvance() 1159 while(tryAdvance(consumer)) { } in forEachRemaining()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamSpliteratorTest.java | 88 public boolean tryAdvance(Consumer<? super T> consumer) { in tryAdvance() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator 91 return sp.tryAdvance(consumer); in tryAdvance() 136 public boolean tryAdvance(Consumer<? super Integer> consumer) { in tryAdvance() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfInt 137 return Spliterator.OfInt.super.tryAdvance(consumer); in tryAdvance() 146 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfInt 149 return psp.tryAdvance(consumer); in tryAdvance() 177 public boolean tryAdvance(Consumer<? super Long> consumer) { in tryAdvance() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfLong 178 return Spliterator.OfLong.super.tryAdvance(consumer); in tryAdvance() 187 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfLong 190 return psp.tryAdvance(consumer); in tryAdvance() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 237 public boolean tryAdvance(java.util.function.DoubleConsumer consumer) { in tryAdvance() method in Random.RandomDoublesSpliterator 291 public boolean tryAdvance(java.util.function.IntConsumer consumer) { in tryAdvance() method in Random.RandomIntsSpliterator 346 public boolean tryAdvance(java.util.function.LongConsumer consumer) { in tryAdvance() method in Random.RandomLongsSpliterator
|
D | ArrayDeque.java | 274 public boolean tryAdvance(java.util.function.Consumer<? super E> consumer) { in tryAdvance() method in ArrayDeque.DeqSpliterator
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBufferSpliterator.java | 77 public boolean tryAdvance(IntConsumer action) { in tryAdvance() method in CharBufferSpliterator
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 4333 assertTrue(intSp.tryAdvance((Integer value) -> assertEquals(1, (int) value))); in test_spliterator_int() 4334 assertTrue(intSp.tryAdvance((int value) -> assertEquals(2, (int) value))); in test_spliterator_int() 4343 assertTrue(split1.tryAdvance((int value) -> recorder.add(value))); in test_spliterator_int() 4344 assertTrue(split1.tryAdvance((Integer value) -> recorder.add(value))); in test_spliterator_int() 4350 assertFalse(split2.tryAdvance((int value) -> fail())); in test_spliterator_int() 4351 assertFalse(split2.tryAdvance((Integer value) -> fail())); in test_spliterator_int() 4367 sp.tryAdvance((Integer value) -> recorder.add((int) value)); in test_spliterator_intOffsetBasic() 4368 sp.tryAdvance((int value) -> recorder.add(value)); in test_spliterator_intOffsetBasic() 4380 sp.tryAdvance((Long value) -> recorder.add((long) value)); in test_spliterator_longOffsetBasic() 4381 sp.tryAdvance((long value) -> recorder.add(value)); in test_spliterator_longOffsetBasic() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 767 public boolean tryAdvance(IntConsumer consumer) { in tryAdvance() method in ThreadLocalRandom.RandomIntsSpliterator 822 public boolean tryAdvance(LongConsumer consumer) { in tryAdvance() method in ThreadLocalRandom.RandomLongsSpliterator 878 public boolean tryAdvance(DoubleConsumer consumer) { in tryAdvance() method in ThreadLocalRandom.RandomDoublesSpliterator
|