Home
last modified time | relevance | path

Searched refs:keySet (Results 1 – 25 of 125) sorted by relevance

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapExtendTest.java139 assertEquals(tm.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_Map()
158 assertEquals(subMap_default.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_SortedMap()
947 Set keySet = subMap_default.keySet(); in test_SubMap_keySet() local
948 assertFalse(keySet.isEmpty()); in test_SubMap_keySet()
949 assertEquals(9, keySet.size()); in test_SubMap_keySet()
951 keySet = subMap_startExcluded_endExcluded.entrySet(); in test_SubMap_keySet()
952 assertFalse(keySet.isEmpty()); in test_SubMap_keySet()
953 assertEquals(8, keySet.size()); in test_SubMap_keySet()
955 keySet = subMap_startExcluded_endIncluded.entrySet(); in test_SubMap_keySet()
956 assertFalse(keySet.isEmpty()); in test_SubMap_keySet()
[all …]
DAbstractMapTest.java78 assertSame("HashMap(0)", map1.keySet(), map1.keySet()); in test_keySet()
81 assertSame("HashMap(10)", map2.keySet(), map2.keySet()); in test_keySet()
84 assertSame("EMPTY_MAP", map3.keySet(), map3.keySet()); in test_keySet()
87 assertSame("IdentityHashMap", map4.keySet(), map4.keySet()); in test_keySet()
90 assertSame("LinkedHashMap", map5.keySet(), map5.keySet()); in test_keySet()
93 assertSame("TreeMap", map6.keySet(), map6.keySet()); in test_keySet()
96 assertSame("WeakHashMap", map7.keySet(), map7.keySet()); in test_keySet()
379 testNullsOnView(nullHostile.keySet());
DSortedMapTestBase.java98 assertEquals(ref.keySet(), map.keySet()); in testKeySet()
99 Iterator<Integer> i = ref.keySet().iterator(); in testKeySet()
100 Iterator<Integer> j = map.keySet().iterator(); in testKeySet()
283 assertFalse(map.keySet().iterator().hasNext()); in testIsEmpty2()
325 assertEquals(ref.keySet().size(), map.keySet().size()); in testViews()
326 assertEquals(ref.keySet(), map.keySet()); in testViews()
327 compareIterators(ref.keySet(), map.keySet()); in testViews()
DHashtableTest.java131 hashTable.put(hashTable, hashTable.keySet()); in test_HashTable_Constructor()
466 Set s = ht10.keySet(); in test_keySet()
482 Iterator it = map.keySet().iterator(); in test_keySet()
493 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
499 Iterator it2 = map2.keySet().iterator(); in test_keySet()
510 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
518 Set s1 = ht10.keySet(); in test_keySet_subtest0()
533 Set set = ht.keySet(); in test_keySet_subtest0()
672 Set keySet = hashTable.keySet(); in test_HashTable_remove_scenario1() local
673 hashTable.put(hashTable, keySet); in test_HashTable_remove_scenario1()
[all …]
DWeakHashMapTest.java298 Set keySet = whm.keySet(); in test_keySet() local
299 assertEquals("Incorrect number of keys returned,", 100, keySet.size()); in test_keySet()
300 Iterator it = keySet.iterator(); in test_keySet()
325 } while (keySet.size() != 99 && in test_keySet()
328 assertEquals("Incorrect number of keys returned after gc,", 99, keySet.size()); in test_keySet()
342 Iterator iter = map.keySet().iterator(); in test_keySet_hasNext()
421 map.keySet().forEach((k) -> setOutput.add(k)); in test_forEach()
422 assertEquals(map.keySet(), setOutput); in test_forEach()
441 map.keySet().forEach(null); in test_forEach_NPE()
477 map.keySet().forEach(new java.util.function.Consumer<Object>() { in test_forEach_CME()
[all …]
DIdentityHashMap2Test.java140 Set keys = map.keySet(); in test_clone()
155 Set key2 = map2.keySet(); in test_clone()
256 Set s = hm.keySet(); in test_keySet()
265 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
266 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
272 Iterator it = map.keySet().iterator(); in test_keySet()
284 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
290 Iterator it2 = map2.keySet().iterator(); in test_keySet()
301 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
DPropertyResourceBundleTest.java48 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_InputStream()
55 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_InputStream()
81 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_Reader()
91 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_Reader()
DLinkedHashMapTest.java257 Set s = hm.keySet(); in test_keySet()
265 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
266 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
272 Iterator it = map.keySet().iterator(); in test_keySet()
284 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
290 Iterator it2 = map2.keySet().iterator(); in test_keySet()
301 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
380 Set keys = map.keySet(); in test_clone()
396 Set key2 = map2.keySet(); in test_clone()
592 Set s1 = lhm.keySet(); in test_ordered_keySet()
[all …]
DHashMapTest.java208 Set keys = map.keySet(); in test_clone()
223 Set key2 = map2.keySet(); in test_clone()
304 assertTrue(hm.keySet().remove("A")); in test_removeFromViews()
357 Set s = hm.keySet(); in test_keySet()
365 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
366 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
372 Iterator it = map.keySet().iterator(); in test_keySet()
384 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
390 Iterator it2 = map2.keySet().iterator(); in test_keySet()
401 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
[all …]
DIdentityHashMapTest.java148 Set keys = map.keySet(); in test_clone()
163 Set key2 = map2.keySet(); in test_clone()
250 Set s = hm.keySet(); in test_keySet()
259 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
260 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
266 Iterator it = map.keySet().iterator(); in test_keySet()
278 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
284 Iterator it2 = map2.keySet().iterator(); in test_keySet()
295 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
595 Set keyset = map.keySet(); in test_sets()
[all …]
DTreeMapTest.java181 Set keys = map.keySet(); in test_clone()
195 Set key2 = map2.keySet(); in test_clone()
282 assertEquals(2, tm.keySet().size()); in test_getLjava_lang_Object()
312 Set<Integer> keySet = smap.keySet(); in test_headMapLjava_lang_Object() local
313 assertEquals(0, keySet.size()); in test_headMapLjava_lang_Object()
408 Set ks = tm.keySet(); in test_keySet()
600 Set<String> keySet = subMap.keySet(); in test_subMap_Iterator() local
601 iter = keySet.iterator(); in test_subMap_Iterator()
858 Set<String> keySet = subMap.keySet(); in test_subMap_Iterator2() local
859 iter = keySet.iterator(); in test_subMap_Iterator2()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java57 testKeySet(modifiableMap.keySet(), unmodifiableMap.keySet()); in runTest()
96 private static void testKeySet(Set<String> referenceKeySet, Set<String> keySet) { in testKeySet() argument
99 testKeySetContents(keySet); in testKeySet()
104 crossCheckOrdering(referenceKeySet, keySet, String.class); in testKeySet()
107 private static void testKeySetContents(Set<String> keySet) { in testKeySetContents() argument
109 assertTrue("should contain \"0\"", keySet.contains("0")); in testKeySetContents()
110 assertTrue("should contain \"50\"", keySet.contains("50")); in testKeySetContents()
111 assertTrue("should not contain \"100\"", !keySet.contains("100")); in testKeySetContents()
118 assertTrue("Should contain set of \"0\", \"25\", and \"99\"", keySet.containsAll(hs)); in testKeySetContents()
121 !keySet.containsAll(hs)); in testKeySetContents()
[all …]
DSupport_MapTest2.java44 assertTrue("Should not have keys", !map.keySet().iterator() in runTest()
58 assertTrue("Should not have keys", !map.keySet().iterator() in runTest()
/libcore/ojluni/src/main/java/java/io/
DExpiringCache.java120 Set<String> keySet = map.keySet(); in cleanup() local
122 String[] keys = new String[keySet.size()]; in cleanup()
124 for (String key: keySet) { in cleanup()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java85 Set<Object> keySet = new HashSet<Object>(); in test_entrySet() local
93 keySet.add(e.getKey()); in test_entrySet()
100 assertTrue("a) Should contain key", keySet.contains(new Attributes.Name("1"))); in test_entrySet()
101 assertTrue("b) Should contain key", keySet.contains(new Attributes.Name("2"))); in test_entrySet()
102 assertTrue("c) Should contain key", keySet.contains(new Attributes.Name("3"))); in test_entrySet()
103 assertTrue("d) Should contain key", keySet.contains(new Attributes.Name("4"))); in test_entrySet()
129 Set<?> s = a.keySet(); in test_keySet()
/libcore/ojluni/src/main/java/sun/util/resources/
DOpenListResourceBundle.java97 return lookup.keySet(); in handleKeySet()
101 public Set<String> keySet() { in keySet() method in OpenListResourceBundle
108 ks.addAll(parent.keySet()); in keySet()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DGroupByOpTest.java71 assertEquals(2, m.keySet().size()); in testBypassCollect()
87 assertEquals(2, result.keySet().size()); in testGroupBy()
147 assertEquals(result.keySet().size(), md.expectedSize); in testOps()
160 if (!Objects.equals(a.keySet(), b.keySet())) { in multiMapEquals()
164 for (K k : a.keySet()) { in multiMapEquals()
/libcore/ojluni/src/main/java/java/util/
DPropertyResourceBundle.java181 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys()
195 return lookup.keySet(); in handleKeySet()
DListResourceBundle.java153 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys()
170 return lookup.keySet(); in handleKeySet()
DAbstractMap.java327 transient Set<K> keySet; field in AbstractMap
346 public Set<K> keySet() { in keySet() method in AbstractMap
347 Set<K> ks = keySet; in keySet()
384 keySet = ks; in keySet()
574 result.keySet = null; in clone()
DHashSet.java172 return map.keySet().iterator(); in iterator()
286 for (E e : map.keySet()) in writeObject()
/libcore/luni/src/test/java/libcore/java/util/
DOldLinkedHashMapTest.java35 Iterator iterator = map.keySet().iterator(); in testLinkedHashMap()
51 iterator = map.keySet().iterator(); in testLinkedHashMap()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurity2Test.java44 for (Object k : provider.keySet()) { in test_getProvidersLjava_lang_String()
75 for (String filterString : allSupported.keySet()) { in test_getProvidersLjava_lang_String()
120 Set allProviderKeys = provider.keySet(); in getProvidersCount()
124 for (Object filter : filterMap.keySet()) { in getProvidersCount()
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java161 Set s = map.keySet(); in testKeySet()
175 Set s = map.keySet(); in testKeySetOrder()
468 Iterator i = sm.keySet().iterator();
475 Iterator j = sm.keySet().iterator();
499 Iterator i = sm.keySet().iterator();
504 Iterator j = sm.keySet().iterator();
526 Iterator i = sm.keySet().iterator();
552 Iterator i = sm.keySet().iterator();
671 Set s = map.keySet();
685 Set s = map.keySet();
[all …]
DConcurrentSkipListSubMapTest.java162 Set s = map.keySet(); in testKeySet()
176 Set s = map.keySet(); in testKeySetOrder()
206 Set s = map.keySet();
633 Iterator i = sm.keySet().iterator();
640 Iterator j = sm.keySet().iterator();
664 Iterator i = sm.keySet().iterator();
669 Iterator j = sm.keySet().iterator();
691 Iterator i = sm.keySet().iterator();
717 Iterator i = sm.keySet().iterator();
836 Set s = map.keySet();
[all …]

12345