Home
last modified time | relevance | path

Searched refs:entrySet (Results 1 – 25 of 127) sorted by relevance

123456

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapExtendTest.java150 assertEquals(tm.entrySet(), treeMap.entrySet()); in test_TreeMap_Constructor_Map()
159 assertEquals(subMap_default.entrySet(), treeMap.entrySet()); in test_TreeMap_Constructor_SortedMap()
325 Set entrySet = subMap_default.entrySet(); in test_SubMap_entrySet() local
326 assertFalse(entrySet.isEmpty()); in test_SubMap_entrySet()
327 assertEquals(9, entrySet.size()); in test_SubMap_entrySet()
329 entrySet = subMap_startExcluded_endExcluded.entrySet(); in test_SubMap_entrySet()
330 assertFalse(entrySet.isEmpty()); in test_SubMap_entrySet()
331 assertEquals(8, entrySet.size()); in test_SubMap_entrySet()
333 entrySet = subMap_startExcluded_endIncluded.entrySet(); in test_SubMap_entrySet()
334 assertFalse(entrySet.isEmpty()); in test_SubMap_entrySet()
[all …]
DSortedMapTestBase.java77 Set<Map.Entry<Integer, Integer>> refSet = ref.entrySet(); in testEntrySet()
78 Set<Map.Entry<Integer, Integer>> mapSet = map.entrySet(); in testEntrySet()
85 assertEquals(ref.entrySet(), map.entrySet()); in testEntrySet()
230 Map.Entry<Integer, Integer> refE = ref.entrySet().iterator().next(); in testSubMap()
231 Map.Entry<Integer, Integer> mapE = map.entrySet().iterator().next(); in testSubMap()
268 assertTrue("Should not have entries", !map.entrySet().iterator() in testIsEmpty2()
275 assertTrue("Should not have entries", !map.entrySet().iterator() in testIsEmpty2()
282 assertFalse(map.entrySet().iterator().hasNext()); in testIsEmpty2()
332 assertEquals(ref.entrySet(), map.entrySet()); in testViews()
333 compareIterators(ref.entrySet(), map.entrySet()); in testViews()
DWeakHashMapTest.java41 public Set entrySet() { in entrySet() method in WeakHashMapTest.MockMap
188 Set entrySet = whm.entrySet(); in test_entrySet() local
189 assertTrue("Incorrect number of entries returned--wanted 100, got: " + entrySet.size(), in test_entrySet()
190 entrySet.size() == 100); in test_entrySet()
191 Iterator it = entrySet.iterator(); in test_entrySet()
211 } while (entrySet.size() != 99 && in test_entrySet()
214 assertEquals("Incorrect number of keys returned after gc,", 99, entrySet.size()); in test_entrySet()
429 map.entrySet().forEach((v) -> entrySetOutput.add(v)); in test_forEach()
430 assertEquals(map.entrySet(), entrySetOutput); in test_forEach()
451 map.entrySet().forEach(null); in test_forEach_NPE()
[all …]
DAbstractMapTest.java68 public Set entrySet() { in entrySet() method in AbstractMapTest.MyMap
159 public Set entrySet() { in entrySet() method in AbstractMapTest.MocAbstractMap
258 public Set entrySet() { in test_clone() method in AbstractMapTest.MyMap
259 return map.entrySet(); in test_clone()
281 Map.Entry entry = (Map.Entry) map.entrySet().iterator().next(); in test_clone()
294 public Set entrySet() { in entrySet() method in AbstractMapTest.AMT
376 testNullsOnView(nullHostile.entrySet());
DHashMapTest.java44 public Set entrySet() { in entrySet() method in HashMapTest.MockMap
54 public Set entrySet() { in entrySet() method in HashMapTest.MockMapNull
274 Set s = hm.entrySet(); in test_entrySet()
293 Set s1 = hm.entrySet(); in test_entrySetEquals()
294 Set s2 = new HashMap(hm).entrySet(); in test_entrySetEquals()
308 assertTrue(hm.entrySet().remove(m2.entrySet().iterator().next())); in test_removeFromViews()
687 Set entrySet = map.entrySet(); in test_EntrySet() local
688 Iterator e = entrySet.iterator(); in test_EntrySet()
692 assertTrue(entrySet.contains(copyEntry)); in test_EntrySet()
694 entrySet.remove(copyEntry); in test_EntrySet()
[all …]
DLinkedHashMapTest.java60 public Set entrySet() { in entrySet() method in LinkedHashMapTest.MockMapNull
183 for (Map.Entry<String, String> e : m.entrySet()) { in test_putPresent()
227 Set s = hm.entrySet(); in test_entrySet()
247 Set<Map.Entry<String, String>> s1 = m1.entrySet(); in entrySetRemoveHelper()
248 s1.remove(m2.entrySet().iterator().next()); in entrySetRemoveHelper()
415 Iterator<Map.Entry<String,String>> iterator = hm1.entrySet().iterator(); in test_clone_ordered()
421 iterator = hm2.entrySet().iterator(); in test_clone_ordered()
530 Set s1 = lhm.entrySet(); in test_ordered_entrySet()
545 Set s3 = lruhm.entrySet(); in test_ordered_entrySet()
563 Set s2 = lruhm.entrySet(); in test_ordered_entrySet()
[all …]
DTreeMapTest.java244 Set anEntrySet = tm.entrySet(); in test_entrySet()
315 Set<Map.Entry<Integer, Double>> entrySet = smap.entrySet(); in test_headMapLjava_lang_Object() local
316 assertEquals(0, entrySet.size()); in test_headMapLjava_lang_Object()
588 Set entrySet = subMap.entrySet(); in test_subMap_Iterator() local
589 Iterator iter = entrySet.iterator(); in test_subMap_Iterator()
846 Set entrySet = subMap.entrySet(); in test_subMap_Iterator2() local
847 Iterator iter = entrySet.iterator(); in test_subMap_Iterator2()
884 assertFalse(headMap.entrySet() instanceof Serializable); in test_SubMap_Serializable()
1797 Set<Entry<String, String>> entrySet = map.entrySet(); in illegalFirstNullKeyMapTester() local
1798 assertTrue(!entrySet.isEmpty()); in illegalFirstNullKeyMapTester()
[all …]
DRefSortedMap.java107 public Set<java.util.Map.Entry<K, V>> entrySet() { in entrySet() method in RefSortedMap.SubMap
270 public Set<Map.Entry<K, V>> entrySet() {
271 return tailMap(firstKey()).entrySet();
340 for (Map.Entry<? extends K, ? extends V> e : arg0.entrySet()) {
383 for (Map.Entry<K, V> e : entrySet()) {
/libcore/luni/src/test/java/libcore/java/util/
DHashMapTest.java137 m.entrySet().spliterator().characteristics()); in test_spliterator_entrySet()
151 assertNull(m.entrySet().spliterator().trySplit()); in test_entrySet_subsizeEstimates()
153 assertEquals(0, m.entrySet().spliterator().estimateSize()); in test_entrySet_subsizeEstimates()
154 assertEquals(0, m.entrySet().spliterator().getExactSizeIfKnown()); in test_entrySet_subsizeEstimates()
157 assertSubsizeEstimate(m.entrySet().spliterator(), 0); in test_entrySet_subsizeEstimates()
159 assertSubsizeEstimate(m.entrySet().spliterator(), 1); in test_entrySet_subsizeEstimates()
166 assertSubsizeEstimate(m.entrySet().spliterator(), 4); in test_entrySet_subsizeEstimates()
169 assertSubsizeEstimate(m.entrySet().spliterator(), 4); in test_entrySet_subsizeEstimates()
170 assertFalse(m.entrySet().spliterator().trySplit().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_subsizeEstimates()
182 Set<Map.Entry<Integer, String>> entries = m.entrySet(); in test_entrySet_subsizeEstimates_recursive()
[all …]
DLinkedHashMapTest.java52 for (Map.Entry<String, String> e : m.entrySet()) { in test_getOrDefault()
73 for (Map.Entry<String, String> e : m.entrySet()) { in test_putIfAbsent()
81 for (Map.Entry<String, String> e : m.entrySet()) { in test_putIfAbsent()
105 for (Map.Entry<String, String> e : m.entrySet()) { in test_replace$K$V$V()
114 for (Map.Entry<String, String> e : m.entrySet()) { in test_replace$K$V$V()
132 for (Map.Entry<String, String> e : m.entrySet()) { in test_replace$K$V()
150 for (Map.Entry<String, String> e : m.entrySet()) { in test_computeIfAbsent()
159 for (Map.Entry<String, String> e : m.entrySet()) { in test_computeIfAbsent()
176 for (Map.Entry<String, String> e : m.entrySet()) { in test_computeIfPresent()
193 for (Map.Entry<String, String> e : m.entrySet()) { in test_compute()
[all …]
DMapDefaultMethodTester.java480 Set<Map.Entry<String, String>> entrySet = m.entrySet(); in checkEntrySpliterator() local
485 assertTrue(entrySet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in checkEntrySpliterator()
487 SpliteratorTester.runBasicIterationTests_unordered(entrySet.spliterator(), in checkEntrySpliterator()
489 SpliteratorTester.runBasicSplitTests(entrySet.spliterator(), in checkEntrySpliterator()
491 SpliteratorTester.testSpliteratorNPE(entrySet.spliterator()); in checkEntrySpliterator()
493 boolean isSized = entrySet.spliterator().hasCharacteristics(Spliterator.SIZED); in checkEntrySpliterator()
495 SpliteratorTester.runSizedTests(entrySet.spliterator(), entrySet.size()); in checkEntrySpliterator()
497 Spliterator<?> subSpliterator = entrySet.spliterator().trySplit(); in checkEntrySpliterator()
499 SpliteratorTester.runSubSizedTests(entrySet.spliterator(), entrySet.size()); in checkEntrySpliterator()
DOldMapEntryTest.java74 i = mhm.entrySet().iterator(); in testSetValue()
107 i = hm.entrySet().iterator(); in setUp()
DMapOfTest.java175 assertThrowsUoe(() -> map.entrySet().clear()); in assertUnmodifiable()
180 Map.Entry<K, V> firstEntry = map.entrySet().iterator().next(); in assertUnmodifiable()
210 assertEquals(expected.entrySet(), actual.entrySet()); in assertMapEquals()
212 assertSetEquals(expected.entrySet(), actual.entrySet()); in assertMapEquals()
/libcore/ojluni/src/main/java/java/util/
DAbstractMap.java85 return entrySet().size(); in size()
112 Iterator<Entry<K,V>> i = entrySet().iterator(); in containsValue()
144 Iterator<Map.Entry<K,V>> i = entrySet().iterator(); in containsKey()
176 Iterator<Entry<K,V>> i = entrySet().iterator(); in get()
235 Iterator<Entry<K,V>> i = entrySet().iterator(); in remove()
280 for (Map.Entry<? extends K, ? extends V> e : m.entrySet()) in putAll()
297 entrySet().clear(); in clear()
352 private Iterator<Entry<K,V>> i = entrySet().iterator(); in keySet()
411 private Iterator<Entry<K,V>> i = entrySet().iterator(); in values()
448 public abstract Set<Entry<K,V>> entrySet(); in entrySet() method in AbstractMap
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java54 testEntrySet(modifiableMap.entrySet(), unmodifiableMap.entrySet()); in runTest()
85 Set<Map.Entry<String, Integer>> entrySet) { in testEntrySet() argument
88 assertEquals(100, entrySet.size()); in testEntrySet()
93 crossCheckOrdering(referenceEntrySet, entrySet, Map.Entry.class); in testEntrySet()
DSupport_MapTest2.java42 assertTrue("Should not have entries", !map.entrySet().iterator() in runTest()
56 assertTrue("Should not have entries", !map.entrySet().iterator() in runTest()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java93 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_clone()
255 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_digest$B()
268 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_digest$BII()
300 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getAlgorithm()
312 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getDigestLength()
324 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_String()
343 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String()
388 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_StringLjava_security_Provider()
418 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getProvider()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeTextProvider.java279 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
292 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
297 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
302 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
341 for (Entry<String, Integer> entry : displayNames.entrySet()) { in createStore()
358 for (Entry<String, Integer> entry : displayNames.entrySet()) { in createStore()
388 for (Entry<String, Integer> entry : displayNames.entrySet()) { in createStore()
422 for (Entry<String, Integer> entry : displayNames.entrySet()) { in createStore()
550 for (Map.Entry<TextStyle, Map<Long, String>> vtmEntry : valueTextMap.entrySet()) { in LocaleStore()
552 for (Map.Entry<Long, String> entry : vtmEntry.getValue().entrySet()) { in LocaleStore()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXRevocationChecker.java200 for (Map.Entry<X509Certificate, byte[]> e : responses.entrySet()) { in setOcspResponses()
219 for (Map.Entry<X509Certificate, byte[]> e : ocspResponses.entrySet()) { in getOcspResponses()
270 copy.ocspResponses.entrySet()) in clone()
/libcore/ojluni/src/main/java/java/util/jar/
DAttributes.java215 for (Map.Entry<?,?> me : (attr).entrySet()) in putAll()
258 public Set<Map.Entry<Object,Object>> entrySet() { in entrySet() method in Attributes
259 return map.entrySet(); in entrySet()
299 Iterator<Map.Entry<Object, Object>> it = entrySet().iterator(); in write()
343 Iterator<Map.Entry<Object, Object>> it = entrySet().iterator(); in writeMain()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java84 Set<Map.Entry<Object, Object>> entrySet = a.entrySet(); in test_entrySet() local
88 assertEquals(4, entrySet.size()); in test_entrySet()
89 i = entrySet.iterator(); in test_entrySet()
/libcore/ojluni/src/main/java/java/security/
DProvider.java130 private transient Set<Map.Entry<Object,Object>> entrySet = null; field in Provider
266 public synchronized Set<Map.Entry<Object,Object>> entrySet() { in entrySet() method in Provider
268 if (entrySet == null) { in entrySet()
270 entrySet = Collections.unmodifiableMap(this).entrySet(); in entrySet()
272 return super.entrySet(); // Recursive call in entrySet()
283 return entrySet; in entrySet()
709 for (Map.Entry<Object,Object> entry : super.entrySet()) { in readObject()
742 for (Map.Entry<?,?> e : t.entrySet()) { in implPutAll()
940 for (Map.Entry<String,String> entry : legacyStrings.entrySet()) { in ensureLegacyParsed()
953 map.entrySet().iterator(); t.hasNext(); ) { in removeInvalidServices()
[all …]
DUnresolvedPermissionCollection.java168 Set<Map.Entry<String, List<UnresolvedPermission>>> set = perms.entrySet(); in writeObject()
209 Set<Map.Entry<String, Vector<UnresolvedPermission>>> set = permissions.entrySet(); in readObject()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DReduceByOpTest.java54 for (Map.Entry<Boolean, Integer> entry : result.entrySet()) { in testOps()
64 for (Map.Entry<Integer, Integer> entry : miResult.entrySet()) { in testOps()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleExtensions.java86 for (Entry<CaseInsensitiveChar, String> ext : extensions.entrySet()) { in LocaleExtensions()
115 for (Entry<CaseInsensitiveString, String> kwd : ukeywords.entrySet()) { in LocaleExtensions()
197 for (Entry<Character, Extension> entry : map.entrySet()) { in toID()

123456