Home
last modified time | relevance | path

Searched refs:hasCharacteristics (Results 1 – 25 of 35) 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.java125 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArray()
154 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArrayRange()
468 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_Collection()
497 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_sizedIterator()
516 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_unsizedIterator()
DAbstractListTest.java144 assertTrue(spliteratorSupplier.get().hasCharacteristics( in checkSpliteratorOfRandomAccessList()
DCollectionsTest.java1136 if (spliterator.hasCharacteristics(SIZED)) { in check_orderedSet()
1139 if (spliterator.hasCharacteristics(SUBSIZED)) { in check_orderedSet()
1193 if (spliterator.hasCharacteristics(SIZED)) { in check_orderedCollection()
1196 if (spliterator.hasCharacteristics(SUBSIZED)) { in check_orderedCollection()
DSpliteratorTester.java335 assertTrue(msg, spliterator.hasCharacteristics(expectedCharacteristics)); in assertHasCharacteristics()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
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()
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.java131 assertTrue(s.hasCharacteristics(Spliterator.SORTED)); in testSorted()
134 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 …]
DTestData.java55 return spliterator().hasCharacteristics(Spliterator.ORDERED); in isOrdered()
/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 …]
DTestData.java54 return spliterator().hasCharacteristics(Spliterator.ORDERED); in isOrdered()
/libcore/ojluni/src/main/java/java/util/stream/
DSliceOps.java79 assert s.hasCharacteristics(Spliterator.SUBSIZED); in sliceSpliterator()
136 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef()
166 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef()
256 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
278 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
368 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
390 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
480 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
502 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
DNodes.java321 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collect()
358 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectInt()
396 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectLong()
434 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectDouble()
1837 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED);
1848 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED);
DAbstractPipeline.java439 thisOpFlags = spliterator.hasCharacteristics(Spliterator.SIZED) in sourceSpliterator()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java974 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1057 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1140 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1223 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1832 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
1931 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
2025 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
2119 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
DSpliterator.java446 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()
DWeakHashMapTest.java545 assertTrue(keys.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator_keySet()
609 assertTrue(values.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator_entrySet()
DHashSetTest.java276 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator()
DLinkedHashMapTest.java851 assertTrue(keys.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator_keySet()
882 assertTrue(values.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator_valueSet()
916 assertTrue(entries.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator_entrySet()
DHashMapTest.java848 assertTrue(keys.spliterator().hasCharacteristics(Spliterator.SIZED | Spliterator.DISTINCT)); in test_spliterator_keySet()
881 assertTrue(values.spliterator().hasCharacteristics(Spliterator.SIZED)); in test_spliterator_valueSet()
916 … assertTrue(values.spliterator().hasCharacteristics(Spliterator.SIZED | Spliterator.DISTINCT)); in test_spliterator_entrySet()

12