Home
last modified time | relevance | path

Searched refs:hasCharacteristics (Results 1 – 25 of 32) 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()
DSpliteratorTester.java335 assertTrue(msg, spliterator.hasCharacteristics(expectedCharacteristics)); in assertHasCharacteristics()
/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/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/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/test/java/util/concurrent/tck/
DLinkedBlockingDeque8Test.java70 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
DLinkedBlockingQueue8Test.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.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()
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()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
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()

12