Home
last modified time | relevance | path

Searched refs:AbstractMap (Results 1 – 25 of 43) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java9 import java.util.AbstractMap;
35 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1()
44 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2()
53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3()
54 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
63 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4()
64 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testConstructor4()
74 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals()
75 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
76 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testEquals()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSimpleEntryTest.java22 import java.util.AbstractMap;
23 import java.util.AbstractMap.SimpleEntry;
30 new AbstractMap.SimpleEntry<Integer, String>(1, "test"); in test_SimpleEntry_Constructor_K_V()
31 new AbstractMap.SimpleEntry(null, null); in test_SimpleEntry_Constructor_K_V()
53 Entry testEntry = new AbstractMap.SimpleEntry(entryToPut); in test_SimpleEntry_Constructor_LEntry()
58 testEntry = new AbstractMap.SimpleEntry(new NullEntry()); in test_SimpleEntry_Constructor_LEntry()
62 new AbstractMap.SimpleEntry(null); in test_SimpleEntry_Constructor_LEntry()
71 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); in test_SimpleEntry_getKey()
73 entry = new AbstractMap.SimpleEntry(null, null); in test_SimpleEntry_getKey()
78 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); in test_SimpleEntry_getValue()
[all …]
DSimpleImmutableEntryTest.java23 import java.util.AbstractMap;
24 import java.util.AbstractMap.SimpleImmutableEntry;
31 new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); in test_SimpleImmutableEntry_Constructor_K_V()
32 new AbstractMap.SimpleImmutableEntry(null, null); in test_SimpleImmutableEntry_Constructor_K_V()
54 Entry testEntry = new AbstractMap.SimpleImmutableEntry(entryToPut); in test_SimpleImmutableEntry_Constructor_LEntry()
59 testEntry = new AbstractMap.SimpleImmutableEntry(new NullEntry()); in test_SimpleImmutableEntry_Constructor_LEntry()
63 new AbstractMap.SimpleImmutableEntry(null); in test_SimpleImmutableEntry_Constructor_LEntry()
72 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); in test_SimpleImmutableEntry_getKey()
74 entry = new AbstractMap.SimpleImmutableEntry(null, null); in test_SimpleImmutableEntry_getKey()
79 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); in test_SimpleImmutableEntry_getValue()
[all …]
DAbstractMapTest.java20 import java.util.AbstractMap;
45 class MyMap extends AbstractMap {
77 AbstractMap map1 = new HashMap(0); in test_keySet()
80 AbstractMap map2 = new HashMap(10); in test_keySet()
86 AbstractMap map4 = new IdentityHashMap(1); in test_keySet()
89 AbstractMap map5 = new LinkedHashMap(122); in test_keySet()
92 AbstractMap map6 = new TreeMap(); in test_keySet()
95 AbstractMap map7 = new WeakHashMap(); in test_keySet()
106 AbstractMap map1 = new HashMap(0); in test_removeLjava_lang_Object()
110 AbstractMap map4 = new IdentityHashMap(1); in test_removeLjava_lang_Object()
[all …]
DIdentityHashMap2Test.java23 import java.util.AbstractMap;
37 class MockMap extends AbstractMap {
146 AbstractMap map2 = (AbstractMap) map.clone(); in test_clone()
DHashMapTest.java26 import java.util.AbstractMap;
43 class MockMap extends AbstractMap {
53 private static class MockMapNull extends AbstractMap {
214 AbstractMap map2 = (AbstractMap) map.clone(); in test_clone()
DRefSortedMap.java36 public class RefSortedMap<K, V> extends java.util.AbstractMap<K, V>
90 class SubMap extends java.util.AbstractMap<K, V>
DLinkedHashMapTest.java20 import java.util.AbstractMap;
58 private static class MockMapNull extends AbstractMap {
386 AbstractMap map2 = (AbstractMap) map.clone(); in test_clone()
DIdentityHashMapTest.java25 import java.util.AbstractMap;
44 class MockMap extends AbstractMap {
154 AbstractMap map2 = (AbstractMap) map.clone(); in test_clone()
DWeakHashMapTest.java20 import java.util.AbstractMap;
40 class MockMap extends AbstractMap {
/libcore/ojluni/src/main/java/java/util/
DAbstractMap.java68 public abstract class AbstractMap<K,V> implements Map<K,V> { class
73 protected AbstractMap() { in AbstractMap() method in AbstractMap
369 return AbstractMap.this.size(); in keySet()
373 return AbstractMap.this.isEmpty(); in keySet()
377 AbstractMap.this.clear(); in keySet()
381 return AbstractMap.this.containsKey(k); in keySet()
428 return AbstractMap.this.size(); in values()
432 return AbstractMap.this.isEmpty(); in values()
436 AbstractMap.this.clear(); in values()
440 return AbstractMap.this.containsValue(v); in values()
[all …]
DWeakHashMap.java137 extends AbstractMap<K,V>
997 list.add(new AbstractMap.SimpleEntry<>(e)); in deepCopy()
1297 (new AbstractMap.SimpleImmutableEntry<K,V>(k, v)); in forEachRemaining()
1323 (new AbstractMap.SimpleImmutableEntry<K,V>(k, v)); in tryAdvance()
DIdentityHashMap.java139 extends AbstractMap<K,V>
1242 a[ti++] = (T) new AbstractMap.SimpleEntry<>(unmaskNull(key), tab[si + 1]); in toArray()
1560 (new AbstractMap.SimpleImmutableEntry<K,V>(k, v)); in forEachRemaining()
1583 (new AbstractMap.SimpleImmutableEntry<K,V>(k, v)); in tryAdvance()
DEnumMap.java79 public class EnumMap<K extends Enum<K>, V> extends AbstractMap<K, V>
513 a[j++] = new AbstractMap.SimpleEntry<>( in fillEntryArray()
/libcore/luni/src/test/java/libcore/java/util/
DOldAbstractMapTest.java20 import java.util.AbstractMap;
36 AbstractMap<String, String> amt1 = new AMT(); in test_equalsLjava_lang_Object()
37 AbstractMap<String, String> amt2 = new AMT(); in test_equalsLjava_lang_Object()
101 static class AMT extends AbstractMap<String, String> {
106 entries.add(new AbstractMap.SimpleEntry<String, String>(key, value)); in put()
DEvilMapTest.java19 import java.util.AbstractMap;
31 public static class EvilMap<K,V> extends AbstractMap<K,V> {
35 entries.add(new AbstractMap.SimpleEntry("hi", "there")); in EvilMap()
DMapDefaultMethodTester.java20 import java.util.AbstractMap;
461 return new AbstractMap.SimpleEntry<>("key" + i, "value" + i); in test_entrySet_spliterator_unordered()
507 result.add(new AbstractMap.SimpleEntry<>(keysAndValues[i], keysAndValues[i+1])); in makeEntries()
DTreeMapTest.java21 import java.util.AbstractMap;
22 import java.util.AbstractMap.SimpleEntry;
746 return new AbstractMap.SimpleEntry<>(key, value); in entry()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DAbstractMap.annotated.java32 public abstract class AbstractMap<K, V> implements java.util.Map<K,V> { class
34 protected AbstractMap() { throw new RuntimeException("Stub!"); } in AbstractMap() method in AbstractMap
DWeakHashMap.annotated.java33 public class WeakHashMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.Map<K,V> {
DHashMap.annotated.java31 public class HashMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.Map<K,V>, java.l…
DTreeMap.annotated.java32 public class TreeMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.NavigableMap<K,V…
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java36 import java.util.AbstractMap;
351 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs); in cache()
504 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs);
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java40 import java.util.AbstractMap;
115 public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
527 AbstractMap.SimpleImmutableEntry<K,V> createSnapshot() { in createSnapshot()
532 return new AbstractMap.SimpleImmutableEntry<K,V>(key, vv); in createSnapshot()
1066 return new AbstractMap.SimpleImmutableEntry<K,V>(n.key, vv); in doRemoveFirstEntry()
1130 return new AbstractMap.SimpleImmutableEntry<K,V>(key, vv); in doRemoveLastEntry()
1260 final AbstractMap.SimpleImmutableEntry<K,V> getNear(K key, int rel) { in getNear()
1266 AbstractMap.SimpleImmutableEntry<K,V> e = n.createSnapshot(); in getNear()
2218 AbstractMap.SimpleImmutableEntry<K,V> e = n.createSnapshot(); in firstEntry()
2235 AbstractMap.SimpleImmutableEntry<K,V> e = n.createSnapshot(); in lastEntry()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/
DEnumMap.java32 public class EnumMap<K extends java.lang.Enum<K>, V> extends java.util.AbstractMap<K, V>

12