Home
last modified time | relevance | path

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

/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/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()
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()
DIntStreamTestScenario.java149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
DStreamTestScenario.java160 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
/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()
DLongStreamTestScenario.java152 … | (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()
DStreamTestScenario.java163 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorsTest.java40 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyIntSpliterator()
57 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyRefSpliterator()
70 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyLongSpliterator()
87 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyDoubleSpliterator()
106 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArray()
135 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArrayRange()
217 assertEquals(16, intSp.getExactSizeIfKnown()); in test_spliterator_int()
293 assertEquals(16, longSp.getExactSizeIfKnown()); in test_spliterator_long()
330 assertEquals(16, doubleSp.getExactSizeIfKnown()); in test_spliterator_double()
449 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliterator_Collection()
[all …]
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()
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.java470 … return StreamOpFlag.SIZED.isKnown(getStreamAndOpFlags()) ? spliterator.getExactSizeIfKnown() : -1; in exactOutputSizeIfKnown()
484 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyInto()
501 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()
/libcore/ojluni/src/main/java/java/util/
DSpliterator.java407 default long getExactSizeIfKnown() { in getExactSizeIfKnown() method
DCollections.java1664 public long getExactSizeIfKnown() {
1665 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