Home
last modified time | relevance | path

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

12345678

/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 …]
/libcore/ojluni/src/test/java/util/IdentityHashMap/
DDistinctEntrySetElements.java52 Set<Map.Entry<String, String>> entrySet = identityHashMap.entrySet(); in main() local
53 HashSet<Map.Entry<String, String>> hashSet = new HashSet<>(entrySet); in main()
57 if (false == hashSet.equals(entrySet)) { in main()
60 if (hashSet.hashCode() != entrySet.hashCode()) { in main()
DToArray.java49 List<Map.Entry<String,String>> lm = new ArrayList<>(mm.entrySet()); in main()
63 Object[] mArray = m.entrySet().toArray(); in main()
75 Set<Map.Entry<Integer,Integer>> es = map.entrySet(); in main()
/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 …]
DWeakHashMapTest.java92 assertFalse(map.entrySet().remove(new Object())); in testEntrySet_removeMapping()
94 assertFalse(map.entrySet().remove(Map.entry("key", "value"))); in testEntrySet_removeMapping()
98 assertTrue(map.entrySet().remove(Map.entry("key", "value"))); in testEntrySet_removeMapping()
107 map.entrySet().clear(); in testEntrySet_clear()
117 var entry = map.entrySet().iterator().next(); in testEntrySet_entrySetValue()
129 var entry = map.entrySet().iterator().next(); in testEntrySet_entryEquals()
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()
/libcore/ojluni/src/test/java/util/Map/
DEntrySetIterator.java41 Set<Map.Entry<String, String>> entrySet = map.entrySet(); in testEntrySetIterator() local
42 Iterator<Map.Entry<String, String>> iterator = entrySet.iterator(); in testEntrySetIterator()
47 Set<Map.Entry<String, String>> copy1 = new HashSet<>(entrySet); in testEntrySetIterator()
48 Set<Map.Entry<String, String>> copy2 = new HashSet<>(entrySet); in testEntrySetIterator()
/libcore/ojluni/src/test/java/util/EnumMap/
DDistinctEntrySetElements.java55 Set<Map.Entry<TestEnum, String>> entrySet = enumMap.entrySet(); in testDistinctElements() local
56 HashSet<Map.Entry<TestEnum, String>> hashSet = new HashSet<>(entrySet); in testDistinctElements()
58 Assert.assertTrue(hashSet.equals(entrySet)); in testDistinctElements()
59 Assert.assertEquals(hashSet.hashCode(), entrySet.hashCode()); in testDistinctElements()
DToArray.java46 Object[] z = m.entrySet().toArray(); in testToArray()
51 x1[2] = m.entrySet().iterator().next(); in testToArray()
52 Map.Entry[] x2 = m.entrySet().toArray(x1); in testToArray()
59 Map.Entry[] y2 = m.entrySet().toArray(y1); in testToArray()
/libcore/ojluni/src/test/java/util/Collections/
DCheckedMapBash.java77 hm.entrySet().hashCode() == m.entrySet().hashCode() && in testCheckedMap()
82 hm.entrySet().equals(m.entrySet()) && in testCheckedMap()
85 m.entrySet().equals(hm.entrySet()) && in testCheckedMap()
128 Set s = m.entrySet(), s2 = m2.entrySet(); in testCheckedMap2()
147 Iterator i = m.entrySet().iterator(); in testCheckedMap2()
DUnmodifiableMapEntrySet.java105 ec -> ms.get().entrySet().forEach(ec)); in testForEach()
111 ec -> ms.get().entrySet().iterator().forEachRemaining(ec)); in testIteratorForEachRemaining()
117 for (Map.Entry<Integer, Integer> me : ms.get().entrySet()) { in testIteratorNext()
126 ms.get().entrySet()::spliterator, in testSpliteratorForEachRemaining()
135 ms.get().entrySet()::spliterator, in testSpliteratorTryAdvance()
158 testWithEntryConsumer(ec -> ms.get().entrySet().stream().forEach(ec)); in testStreamForEach()
163 testWithEntryConsumer(ec -> ms.get().entrySet().parallelStream().forEach(ec)); in testParallelStreamForEach()
DDelegatingIteratorForEachRemaining.java135 @Override public Set<Entry<K, V>> entrySet() { return delegate.entrySet(); } in entrySet() method in DelegatingIteratorForEachRemaining.ForwardingMap
157 public ThrowingSet<Entry<K, V>> entrySet() { in entrySet() method in DelegatingIteratorForEachRemaining.ThrowingMap
158 return new ThrowingSet<>(super.entrySet()); in entrySet()
183 assertThrowingIterator(map().entrySet().iterator()); in testUnwrapped()
188 assertThrowingIterator(Collections.unmodifiableMap(map()).entrySet().iterator()); in test_unmodifiableMap_entrySet()
192 …assertThrowingIterator(Collections.checkedMap(map(), String.class, Object.class).entrySet().iterat… in test_checkedMap_entrySet()
196 Set<Map.Entry<String, Object>> entrySet = map().entrySet(); in test_entrySet_checkedSet() local
197 Class clazz = entrySet.iterator().next().getClass(); in test_entrySet_checkedSet()
198 assertThrowingIterator(Collections.checkedSet(entrySet, clazz).iterator()); in test_entrySet_checkedSet()
DWrappers.java79 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).entrySet() }); in collectionCases()
82 cases.add(new Object[] { Collections.unmodifiableSortedMap(seedMap).entrySet() }); in collectionCases()
85 cases.add(new Object[] { Collections.unmodifiableNavigableMap(seedMap).entrySet() }); in collectionCases()
99 cases.add(new Object[] { Collections.synchronizedMap(seedMap).entrySet() }); in collectionCases()
102 cases.add(new Object[] { Collections.synchronizedSortedMap(seedMap).entrySet() }); in collectionCases()
105 cases.add(new Object[] { Collections.synchronizedNavigableMap(seedMap).entrySet() }); in collectionCases()
/libcore/ojluni/src/test/java/util/Properties/
DPropertiesEntrySetTest.java48 var aEntrySet = a.entrySet(); in testEquals()
53 var bEntrySet = b.entrySet(); in testEquals()
67 var cEntrySet = c.entrySet(); in testEquals()
77 var dEntrySet = d.entrySet(); in testEquals()
103 var aEntrySet = a.entrySet(); in testToString()
119 var bEntrySet = b.entrySet(); in testToString()
155 var aEntrySet = a.entrySet(); in testEntrySetWithoutException()
174 var bEntrySet = b.entrySet(); in testEntrySetWithoutException()
194 var aEntrySet = a.entrySet(); in testEntrySetExceptionWhenAdd()
198 var bEntrySet = b.entrySet(); in testEntrySetExceptionWhenAdd()
/libcore/ojluni/src/main/java/java/util/
DProperties.java916 for (Map.Entry<Object, Object> e : entrySet()) { in store0()
1206 for (Map.Entry<String, Object> e : h.entrySet()) { in list()
1234 for (Map.Entry<String, Object> e : h.entrySet()) { in list()
1254 for (Map.Entry<Object, Object> e : entrySet()) { in enumerate()
1269 for (Map.Entry<Object, Object> e : entrySet()) { in enumerateStringProperties()
1359 public Set<Map.Entry<Object, Object>> entrySet() { in entrySet() method in Properties
1360 return Collections.synchronizedSet(new EntrySet(map.entrySet()), this); in entrySet()
1369 private Set<Map.Entry<Object,Object>> entrySet; field in Properties.EntrySet
1371 private EntrySet(Set<Map.Entry<Object, Object>> entrySet) { in EntrySet() argument
1372 this.entrySet = entrySet; in EntrySet()
[all …]
DSequencedMap.java152 var it = entrySet().iterator(); in firstEntry()
169 var it = reversed().entrySet().iterator(); in lastEntry()
188 var it = entrySet().iterator(); in pollFirstEntry()
213 var it = reversed().entrySet().iterator(); in pollLastEntry()
338 return SequencedMap.this.entrySet(); in sequencedEntrySet()
DAbstractMap.java89 return entrySet().size(); in size()
116 Iterator<Entry<K,V>> i = entrySet().iterator(); in containsValue()
148 Iterator<Map.Entry<K,V>> i = entrySet().iterator(); in containsKey()
180 Iterator<Entry<K,V>> i = entrySet().iterator(); in get()
239 Iterator<Entry<K,V>> i = entrySet().iterator(); in remove()
284 for (Map.Entry<? extends K, ? extends V> e : m.entrySet()) in putAll()
301 entrySet().clear(); in clear()
356 private Iterator<Entry<K,V>> i = entrySet().iterator(); in keySet()
415 private Iterator<Entry<K,V>> i = entrySet().iterator(); in values()
452 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()
/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/test/java/util/SequencedCollection/
DBasicMap.java469 checkView1(map.entrySet(), refEntries); in checkEntrySet()
473 checkView1(rmap.entrySet(), rref); in checkEntrySet()
477 checkView1(rmap.reversed().entrySet(), refEntries); in checkEntrySet()
481 assertEquals(map.entrySet().hashCode(), rmap.entrySet().hashCode()); in checkEntrySet()
482 assertEquals(map.entrySet().hashCode(), map.sequencedEntrySet().hashCode()); in checkEntrySet()
483 assertEquals(map.sequencedEntrySet().hashCode(), map.entrySet().hashCode()); in checkEntrySet()
485 assertTrue(map.entrySet().equals(map.sequencedEntrySet())); in checkEntrySet()
486 assertTrue(map.sequencedEntrySet().equals(map.entrySet())); in checkEntrySet()
487 assertTrue(rmap.entrySet().equals(map.sequencedEntrySet())); in checkEntrySet()
488 assertTrue(rmap.sequencedEntrySet().equals(map.entrySet())); in checkEntrySet()
[all …]

12345678