Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/test/java/util/concurrent/tck/
DEntryTest.java35 import java.util.AbstractMap;
58 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1()
67 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2()
76 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3()
77 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
86 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4()
87 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testConstructor4()
97 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals()
98 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
99 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testEquals()
[all …]
/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()
/libcore/luni/src/test/java/libcore/java/util/
DAbstractMapTest.java26 import java.util.AbstractMap;
34 AbstractMap.SimpleEntry<String, Integer> entry = new AbstractMap.SimpleEntry<>("abc", 1); in testSimpleEntrySetValue()
39 AbstractMap.SimpleImmutableEntry<String, Integer> immutableEntry = in testSimpleEntrySetValue()
40 new AbstractMap.SimpleImmutableEntry<>("abc", 1); in testSimpleEntrySetValue()
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/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.java136 extends AbstractMap<K,V>
998 list.add(new AbstractMap.SimpleEntry<>(e)); in deepCopy()
1298 (new AbstractMap.SimpleImmutableEntry<>(k, v)); in forEachRemaining()
1324 (new AbstractMap.SimpleImmutableEntry<>(k, v)); in tryAdvance()
DEnumMap.java79 public class EnumMap<K extends Enum<K>, V> extends AbstractMap<K, V>
506 a[j++] = new AbstractMap.SimpleEntry<>( in fillEntryArray()
DIdentityHashMap.java144 extends AbstractMap<K,V>
1239 a[ti++] = (T) new AbstractMap.SimpleEntry<>(unmaskNull(key), tab[si + 1]); in toArray()
1563 (new AbstractMap.SimpleImmutableEntry<>(k, v)); in forEachRemaining()
1586 (new AbstractMap.SimpleImmutableEntry<>(k, v)); in tryAdvance()
/libcore/ojluni/src/test/java/util/Map/
DEntryComparators.java32 import java.util.AbstractMap;
48 final Map.Entry<K, V> p11 = new AbstractMap.SimpleImmutableEntry<>(k1, v1); in assertPairComparison()
49 final Map.Entry<K, V> p12 = new AbstractMap.SimpleImmutableEntry<>(k1, v2); in assertPairComparison()
50 final Map.Entry<K, V> p21 = new AbstractMap.SimpleImmutableEntry<>(k2, v1); in assertPairComparison()
51 final Map.Entry<K, V> p22 = new AbstractMap.SimpleImmutableEntry<>(k2, v2); in assertPairComparison()
/libcore/luni/src/test/java/crossvmtest/java/lang/
DRecordComponentTest.java34 import java.util.AbstractMap;
55 record GenericRecord<A, B extends AbstractMap<String, BigInteger>> ( in GenericRecord()
/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> {
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java42 import java.util.AbstractMap;
351 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs); in cache()
501 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs);
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java42 import java.util.AbstractMap;
112 public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
846 final AbstractMap.SimpleImmutableEntry<K,V> findFirstEntry() { in findFirstEntry()
853 return new AbstractMap.SimpleImmutableEntry<K,V>(n.key, v); in findFirstEntry()
863 private AbstractMap.SimpleImmutableEntry<K,V> doRemoveFirstEntry() { in doRemoveFirstEntry()
874 return new AbstractMap.SimpleImmutableEntry<K,V>(k, v); in doRemoveFirstEntry()
934 final AbstractMap.SimpleImmutableEntry<K,V> findLastEntry() { in findLastEntry()
940 return new AbstractMap.SimpleImmutableEntry<K,V>(n.key, v); in findLastEntry()
992 return new AbstractMap.SimpleImmutableEntry<K,V>(k, v); in doRemoveLastEntry()
1055 final AbstractMap.SimpleImmutableEntry<K,V> findNearEntry(K key, int rel, in findNearEntry()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DConcurrentHashMapTest.java24 import java.util.AbstractMap;
58 return new AbstractMap.SimpleEntry<Long,Long> in apply()
66 return new AbstractMap.SimpleEntry<Long, Long> in apply()

123