Home
last modified time | relevance | path

Searched refs:hasCharacteristics (Results 1 – 25 of 44) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DHashMapTest.java170 assertFalse(m.entrySet().spliterator().trySplit().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_subsizeEstimates()
200 assertTrue(m.entrySet().spliterator().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
201 assertFalse(m.entrySet().spliterator().hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
204 assertTrue(m.entrySet().spliterator().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
205 assertFalse(m.entrySet().spliterator().hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
208 assertFalse(parent.hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
209 assertFalse(child.hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
210 assertFalse(parent.hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
211 assertFalse(child.hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
DMapDefaultMethodTester.java485 assertTrue(entrySet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in checkEntrySpliterator()
493 boolean isSized = entrySet.spliterator().hasCharacteristics(Spliterator.SIZED); in checkEntrySpliterator()
498 if (subSpliterator != null && subSpliterator.hasCharacteristics(Spliterator.SIZED)) { in checkEntrySpliterator()
DSpliteratorsTest.java129 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArray()
158 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArrayRange()
472 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_Collection()
501 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_sizedIterator()
520 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_unsizedIterator()
DAbstractListTest.java144 assertTrue(spliteratorSupplier.get().hasCharacteristics( in checkSpliteratorOfRandomAccessList()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntPrimitiveOpsTests.java98 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags()
100 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
102 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags()
105 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags()
107 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
109 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags()
112 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags()
114 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
116 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags()
DLongPrimitiveOpsTests.java98 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags()
100 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
102 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags()
105 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
107 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags()
109 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
DConcatTest.java119 … assertTrue(s1s.spliterator().hasCharacteristics(Spliterator.ORDERED), c1.getClass().toString()); in checkPrerequisites()
120 … assertTrue(s1p.spliterator().hasCharacteristics(Spliterator.ORDERED), c2.getClass().toString()); in checkPrerequisites()
121 … assertTrue(s2s.spliterator().hasCharacteristics(Spliterator.ORDERED), c1.getClass().toString()); in checkPrerequisites()
122 … assertTrue(s2p.spliterator().hasCharacteristics(Spliterator.ORDERED), c2.getClass().toString()); in checkPrerequisites()
127 assertFalse(sp.hasCharacteristics(Spliterator.DISTINCT), scenario); in assertConcatContent()
129 assertFalse(sp.hasCharacteristics(Spliterator.SORTED), scenario); in assertConcatContent()
131 assertEquals(sp.hasCharacteristics(Spliterator.ORDERED), ordered, scenario); in assertConcatContent()
DSliceOpTest.java203 assert s.hasCharacteristics(Spliterator.ORDERED); in testSkipLimitOpsWithNonSplittingSpliterator()
361 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SIZED));
362 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SUBSIZED));
368 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SIZED));
369 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SUBSIZED));
371 assertTrue(prefix.hasCharacteristics(Spliterator.SIZED));
372 assertTrue(prefix.hasCharacteristics(Spliterator.SUBSIZED));
376 assertTrue(seqSpliterator.hasCharacteristics(Spliterator.SIZED));
377 assertTrue(seqSpliterator.hasCharacteristics(Spliterator.SUBSIZED));
DDoublePrimitiveOpsTests.java55 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
57 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
DConcatOpTest.java132 assertFalse(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertUnsized()
139 assertTrue(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSized()
DRangeTest.java231 assertTrue(s.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSizedAndSubSized()
235 assertFalse(s.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertNotSizedAndSubSized()
DSortedOpTest.java134 assertTrue(s.hasCharacteristics(Spliterator.SORTED)); in testSorted()
137 assertFalse(s.hasCharacteristics(Spliterator.SORTED)); in testSorted()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java204 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testForEach()
234 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testTryAdvance()
264 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTryAdvanceForEach()
295 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTraverseAndSplit()
362 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitOnce()
389 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitSixDeep()
485 boolean isOrdered = s.hasCharacteristics(Spliterator.ORDERED); in testSplitUntilNull()
585 assertTrue(s.hasCharacteristics(Spliterator.SUBSIZED),
592 if (s.hasCharacteristics(Spliterator.SUBSIZED)) {
593 assertTrue(s.hasCharacteristics(Spliterator.SIZED));
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java204 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testForEach()
234 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testTryAdvance()
264 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTryAdvanceForEach()
295 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTraverseAndSplit()
362 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitOnce()
389 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitSixDeep()
485 boolean isOrdered = s.hasCharacteristics(Spliterator.ORDERED); in testSplitUntilNull()
585 assertTrue(s.hasCharacteristics(Spliterator.SUBSIZED),
592 if (s.hasCharacteristics(Spliterator.SUBSIZED)) {
593 assertTrue(s.hasCharacteristics(Spliterator.SIZED));
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/
DSpliteratorTestHelper.java252 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testForEach()
285 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testTryAdvance()
315 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTryAdvanceForEach()
346 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTraverseAndSplit()
413 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitOnce()
440 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitSixDeep()
524 boolean isOrdered = s.hasCharacteristics(Spliterator.ORDERED); in testSplitUntilNull()
624 assertTrue(s.hasCharacteristics(Spliterator.SUBSIZED),
631 if (s.hasCharacteristics(Spliterator.SUBSIZED)) {
632 assertTrue(s.hasCharacteristics(Spliterator.SIZED));
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DSliceOps.java78 assert s.hasCharacteristics(Spliterator.SUBSIZED); in sliceSpliterator()
132 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef()
162 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef()
258 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
280 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
376 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
398 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
494 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
516 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
DNodes.java329 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collect()
366 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectInt()
404 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectLong()
442 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectDouble()
1845 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED);
1856 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED);
/libcore/ojluni/src/test/java/util/concurrent/tck/
DLinkedBlockingQueue8Test.java70 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
DLinkedBlockingDeque8Test.java70 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
DCollection8Test.java162 if (c.spliterator().hasCharacteristics(Spliterator.SIZED))
301 c.spliterator().hasCharacteristics(Spliterator.ORDERED);
409 if (s.hasCharacteristics(Spliterator.CONCURRENT)) {
443 if (! (s.hasCharacteristics(Spliterator.CONCURRENT) ||
444 s.hasCharacteristics(Spliterator.IMMUTABLE)))
476 if (s.hasCharacteristics(Spliterator.CONCURRENT)) {
521 c.spliterator().hasCharacteristics(Spliterator.ORDERED);
881 .hasCharacteristics(Spliterator.IMMUTABLE))
912 boolean reportsSorted = s.hasCharacteristics(Spliterator.SORTED);
DArrayDeque8Test.java72 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java1018 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1101 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1184 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1267 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1876 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1975 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
2069 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
2163 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
DSpliterator.java452 default boolean hasCharacteristics(int characteristics) { in hasCharacteristics() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeSetTest.java342 assertTrue(treeSet.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator()
345 assertTrue(treeSet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator()
DLinkedHashSetTest.java346 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator()
349 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator()

12