Home
last modified time | relevance | path

Searched refs:getExactSizeIfKnown (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSpinedBufferTest.java90 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testSpliterator()
99 long splitSizes = (split == null) ? 0 : split.getExactSizeIfKnown(); in testLastSplit()
100 long lastSplitSize = spliterator.getExactSizeIfKnown(); in testLastSplit()
165 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testIntSpliterator()
174 long splitSizes = (split == null) ? 0 : split.getExactSizeIfKnown(); in testIntLastSplit()
175 long lastSplitSize = spliterator.getExactSizeIfKnown(); in testIntLastSplit()
240 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testLongSpliterator()
249 long splitSizes = (split == null) ? 0 : split.getExactSizeIfKnown(); in testLongLastSplit()
250 long lastSplitSize = spliterator.getExactSizeIfKnown(); in testLongLastSplit()
316 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testDoubleSpliterator()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java203 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testForEach()
233 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testTryAdvance()
263 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTryAdvanceForEach()
294 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTraverseAndSplit()
361 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testSplitOnce()
367 long s1Size = s1.getExactSizeIfKnown(); in testSplitOnce()
368 long s2Size = (s2 != null) ? s2.getExactSizeIfKnown() : 0; in testSplitOnce()
424 long beforeSize = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor()
441 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor()
542 long parentSize = parentAndRightSplit.getExactSizeIfKnown(); in testSplitUntilNull()
[all …]
DTestData.java102 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofSupplier()
132 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofIntSupplier()
163 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofLongSupplier()
194 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofDoubleSupplier()
DDoubleStreamTestScenario.java153 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DIntStreamTestScenario.java152 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DLongStreamTestScenario.java152 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DStreamTestScenario.java163 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java203 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testForEach()
233 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testTryAdvance()
263 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTryAdvanceForEach()
294 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTraverseAndSplit()
361 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testSplitOnce()
367 long s1Size = s1.getExactSizeIfKnown(); in testSplitOnce()
368 long s2Size = (s2 != null) ? s2.getExactSizeIfKnown() : 0; in testSplitOnce()
424 long beforeSize = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor()
441 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor()
542 long parentSize = parentAndRightSplit.getExactSizeIfKnown(); in testSplitUntilNull()
[all …]
DTestData.java101 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofSupplier()
131 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofIntSupplier()
162 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofLongSupplier()
193 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofDoubleSupplier()
DIntStreamTestScenario.java149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DLongStreamTestScenario.java149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DDoubleStreamTestScenario.java149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DStreamTestScenario.java160 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTester.java237 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSizedTests()
252 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSubSizedTests()
259 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSubSizedTests()
264 spliterator.getExactSizeIfKnown() + child.getExactSizeIfKnown()); in runSubSizedTests()
DSpliteratorsTest.java44 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyIntSpliterator()
61 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyRefSpliterator()
74 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyLongSpliterator()
91 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyDoubleSpliterator()
110 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArray()
139 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArrayRange()
221 assertEquals(16, intSp.getExactSizeIfKnown()); in test_spliterator_int()
297 assertEquals(16, longSp.getExactSizeIfKnown()); in test_spliterator_long()
334 assertEquals(16, doubleSp.getExactSizeIfKnown()); in test_spliterator_double()
453 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliterator_Collection()
[all …]
DHashMapTest.java154 assertEquals(0, m.entrySet().spliterator().getExactSizeIfKnown()); in test_entrySet_subsizeEstimates()
DCollectionsTest.java286 assertEquals(1, sp.getExactSizeIfKnown()); in testSingletonSpliterator()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamSpliteratorTest.java90 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance()
96 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining()
148 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance()
154 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining()
189 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance()
195 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining()
231 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance()
237 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining()
/libcore/ojluni/src/main/java/java/util/stream/
DAbstractPipeline.java474 long size = StreamOpFlag.SIZED.isKnown(flags) ? spliterator.getExactSizeIfKnown() : -1; in exactOutputSizeIfKnown()
512 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyInto()
530 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyIntoWithCancel()
DStreamSpliterators.java160 bufferSink.begin(spliterator.getExactSizeIfKnown()); in doAdvance()
228 public final long getExactSizeIfKnown() {
231 ? spliterator.getExactSizeIfKnown()
550 public long getExactSizeIfKnown() { in getExactSizeIfKnown() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator
551 return get().getExactSizeIfKnown(); in getExactSizeIfKnown()
DWhileOps.java720 public long getExactSizeIfKnown() {
/libcore/ojluni/src/main/java/java/util/
DSpliterator.java413 default long getExactSizeIfKnown() { in getExactSizeIfKnown() method
DCollections.java1714 public long getExactSizeIfKnown() {
1715 return s.getExactSizeIfKnown();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java4330 assertEquals(16, intSp.getExactSizeIfKnown()); in test_spliterator_int()
4407 assertEquals(16, longSp.getExactSizeIfKnown()); in test_spliterator_long()
4446 assertEquals(16, doubleSp.getExactSizeIfKnown()); in test_spliterator_double()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java3295 public long getExactSizeIfKnown() { in getExactSizeIfKnown() method in Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableEntrySetSpliterator

12