Home
last modified time | relevance | path

Searched refs:LinkedHashMap (Results 1 – 25 of 60) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedHashMapTest.java28 import java.util.LinkedHashMap;
44 LinkedHashMap hm;
52 static final class CacheMap extends LinkedHashMap {
75 new Support_MapTest2(new LinkedHashMap()).runTest(); in test_Constructor()
77 LinkedHashMap hm2 = new LinkedHashMap(); in test_Constructor()
86 LinkedHashMap hm2 = new LinkedHashMap(5); in test_ConstructorI()
89 new LinkedHashMap(-1); in test_ConstructorI()
96 LinkedHashMap empty = new LinkedHashMap(0); in test_ConstructorI()
107 LinkedHashMap hm2 = new LinkedHashMap(5, (float) 0.5); in test_ConstructorIF()
110 new LinkedHashMap(0, 0); in test_ConstructorIF()
[all …]
DAbstractMapTest.java30 import java.util.LinkedHashMap;
89 AbstractMap map5 = new LinkedHashMap(122); in test_keySet()
114 AbstractMap map5 = new LinkedHashMap(122); in test_removeLjava_lang_Object()
241 AbstractMap map5 = new LinkedHashMap(122); in test_values()
/libcore/luni/src/test/java/libcore/java/util/
DLinkedHashMapTest.java27 import java.util.LinkedHashMap;
42 .test_getOrDefault(new LinkedHashMap<>(), true /*acceptsNullKey*/, in test_getOrDefault()
46 Map<String, String> m = new LinkedHashMap<String, String>(8, .75f, true); in test_getOrDefault()
60 MapDefaultMethodTester.test_forEach(new LinkedHashMap<>()); in test_forEach()
64 MapDefaultMethodTester.test_putIfAbsent(new LinkedHashMap<>(), true /*acceptsNullKey*/, in test_putIfAbsent()
68 Map<String, String> m = new LinkedHashMap<String, String>(8, .75f, true); in test_putIfAbsent()
89 MapDefaultMethodTester.test_remove(new LinkedHashMap<>(), true /*acceptsNullKey*/, in test_remove()
95 test_replace$K$V$V(new LinkedHashMap<>(), true /*acceptsNullKey*/, in test_replace$K$V$V()
99 Map<String, String> m = new LinkedHashMap<>(8, .75f, true /*accessOrder*/); in test_replace$K$V$V()
122 MapDefaultMethodTester.test_replace$K$V(new LinkedHashMap<>(), true /*acceptsNullKey*/, in test_replace$K$V()
[all …]
DOldLinkedHashMapTest.java22 import java.util.LinkedHashMap;
29 LinkedHashMap map = new LinkedHashMap<String, String>(10, 0.75f, true); in testLinkedHashMap()
49 LinkedHashMap mapClone = (LinkedHashMap) map.clone(); in testLinkedHashMap()
57 new LinkedHashMap<String, String>(-10, 0.75f, true); in testLinkedHashMap()
63 new LinkedHashMap<String, String>(10, -0.75f, true); in testLinkedHashMap()
DEvilMapTest.java24 import java.util.LinkedHashMap;
73 LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(evil); in test_48055_LinkedHashMap()
75 LinkedHashMap<String, String> map2 = new LinkedHashMap<String, String>(); in test_48055_LinkedHashMap()
/libcore/ojluni/src/main/java/java/util/
DLinkedHashMap.java194 public class LinkedHashMap<K,V> class
236 transient LinkedHashMap.Entry<K,V> head;
241 transient LinkedHashMap.Entry<K,V> tail;
254 private void linkNodeAtEnd(LinkedHashMap.Entry<K,V> p) { in linkNodeAtEnd()
256 LinkedHashMap.Entry<K,V> first = head; in linkNodeAtEnd()
265 LinkedHashMap.Entry<K,V> last = tail; in linkNodeAtEnd()
277 private void transferLinks(LinkedHashMap.Entry<K,V> src, in transferLinks()
278 LinkedHashMap.Entry<K,V> dst) { in transferLinks()
279 LinkedHashMap.Entry<K,V> b = dst.before = src.before; in transferLinks()
280 LinkedHashMap.Entry<K,V> a = dst.after = src.after; in transferLinks()
[all …]
DLinkedHashSet.java229 LinkedHashMap<E, Object> map() { in map()
230 return (LinkedHashMap<E, Object>) map; in map()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLinkedHashMap.java31 public class LinkedHashMap<K, V> extends java.util.HashMap<K, V> implements java.util.Map<K, V> { class
33 public LinkedHashMap(int initialCapacity, float loadFactor) { in LinkedHashMap() method in LinkedHashMap
37 public LinkedHashMap(int initialCapacity) { in LinkedHashMap() method in LinkedHashMap
41 public LinkedHashMap() { in LinkedHashMap() method in LinkedHashMap
45 public LinkedHashMap(java.util.Map<? extends K, ? extends V> m) { in LinkedHashMap() method in LinkedHashMap
49 public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) { in LinkedHashMap() method in LinkedHashMap
53 private void linkNodeLast(java.util.LinkedHashMap.LinkedHashMapEntry<K, V> p) { in linkNodeLast()
58 java.util.LinkedHashMap.LinkedHashMapEntry<K, V> src, in transferLinks()
59 java.util.LinkedHashMap.LinkedHashMapEntry<K, V> dst) { in transferLinks()
155 transient java.util.LinkedHashMap.LinkedHashMapEntry<K, V> head;
[all …]
/libcore/ojluni/annotations/mmodule/java/util/
DLinkedHashMap.annotated.java31 public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.Map<K,V> { class
33 public LinkedHashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in LinkedHashMap() method in LinkedHashMap
35 public LinkedHashMap(int initialCapacity) { throw new RuntimeException("Stub!"); } in LinkedHashMap() method in LinkedHashMap
37 public LinkedHashMap() { throw new RuntimeException("Stub!"); } in LinkedHashMap() method in LinkedHashMap
39 public LinkedHashMap(java.util.Map<? extends K, ? extends V> m) { throw new RuntimeException("Stub!… in LinkedHashMap() method in LinkedHashMap
41 public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) { throw new Runtim… in LinkedHashMap() method in LinkedHashMap
/libcore/ojluni/annotations/flagged_api/java/util/
DLinkedHashMap.annotated.java30 public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.SequencedMap<K… class
32 public LinkedHashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in LinkedHashMap() method in LinkedHashMap
34 public LinkedHashMap(int initialCapacity) { throw new RuntimeException("Stub!"); } in LinkedHashMap() method in LinkedHashMap
36 public LinkedHashMap() { throw new RuntimeException("Stub!"); } in LinkedHashMap() method in LinkedHashMap
38 public LinkedHashMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!"… in LinkedHashMap() method in LinkedHashMap
40 public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) { throw new Runtim… in LinkedHashMap() method in LinkedHashMap
78 public static <K, V> java.util.LinkedHashMap<K,V> newLinkedHashMap(int numMappings) { throw new Run… in newLinkedHashMap()
/libcore/ojluni/src/test/java/util/LinkedHashMap/
DComputeIfAbsentAccessOrder.java23 package test.java.util.LinkedHashMap;
37 LinkedHashMap<String,Object> map = new LinkedHashMap<>(2, 0.75f, true); in main()
DCache.java29 package test.java.util.LinkedHashMap;
31 import java.util.LinkedHashMap;
39 Map m = new LinkedHashMap() { in main()
DBasic.java29 package test.java.util.LinkedHashMap;
39 import java.util.LinkedHashMap;
61 Map<Integer,Integer> m = new LinkedHashMap(); in testBasic()
76 Map<Integer,Integer> m2 = new LinkedHashMap(); m2.putAll(m); in testBasic()
93 Map<Integer,Integer> m = new LinkedHashMap(); in testBasic()
99 Map<Integer,Integer> m2 = new LinkedHashMap(); m2.putAll(m); in testBasic()
132 m = new LinkedHashMap(); in testBasic()
152 m2 = (Map) ((LinkedHashMap)m).clone(); in testBasic()
164 m = new LinkedHashMap(2*mapSize, .75f, true); in testBasic()
231 m2 = (Map) ((LinkedHashMap)m).clone(); in testBasic()
DEmptyMapIterator.java29 package test.java.util.LinkedHashMap;
/libcore/luni/src/main/java/libcore/util/
DBasicLruCache.java20 import java.util.LinkedHashMap;
30 private final LinkedHashMap<K, V> map;
39 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in BasicLruCache()
132 return new LinkedHashMap<K, V>(map); in snapshot()
/libcore/benchmarks/src/benchmarks/
DHashedCollectionsBenchmark.java21 import java.util.LinkedHashMap;
54 LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); in timeLinkedHashMapGet()
/libcore/luni/src/test/androidsdkcurrent/src/libcore/sdkcurrent/java/util/
DLinkedHashMapTest.java25 import java.util.LinkedHashMap;
38 assertEquals(Map.Entry.class, LinkedHashMap.Entry.class); in test_entryCompatibility_compiletime()
/libcore/ojluni/src/test/java/util/HashMap/
DWhiteBoxResizeTest.java33 import java.util.LinkedHashMap;
105 capacityTestDefaultConstructor(new LinkedHashMap<>()); in capacityTestDefaultConstructor()
124 () -> new LinkedHashMap<>(initialCapacity), in capacityTestInitialCapacity()
125 () -> new LinkedHashMap<>(initialCapacity, 0.75f)); in capacityTestInitialCapacity()
/libcore/ojluni/src/test/java/util/SequencedCollection/
DBasicMap.java101 new Object[] { "LinkedHashMap", load(new LinkedHashMap<>(), ORIGINAL), ORIGINAL }, in populated()
104 new Object[] { "UnmodMap", umap(load(new LinkedHashMap<>(), ORIGINAL)), ORIGINAL } in populated()
113 new Object[] { "LinkedHashMap", new LinkedHashMap<>(), List.of() }, in empties()
116 new Object[] { "UnmodMap", umap(new LinkedHashMap<>()), List.of() } in empties()
123 new Object[] { "LinkedHashMap", load(new LinkedHashMap<>(), ORIGINAL), ORIGINAL }, in polls()
132 new Object[] { "LinkedHashMap", new LinkedHashMap<>(), List.of() }, in emptyPolls()
141 new Object[] { "LinkedHashMap", load(new LinkedHashMap<>(), ORIGINAL), ORIGINAL } in puts()
148 … new Object[] { "LinkedHashMap", false, load(new LinkedHashMap<>(), ORIGINAL), ORIGINAL }, in putUnpositioned()
149 new Object[] { "LinkedHashMap", true, load(new LinkedHashMap<>(), ORIGINAL), ORIGINAL } in putUnpositioned()
164 new Object[] { "LinkedHashMap", load(new LinkedHashMap<>(), ORIGINAL), ORIGINAL }, in serializable()
[all …]
/libcore/ojluni/src/test/java/util/Map/
DMapBinToFromTreeTest.java30 import java.util.LinkedHashMap;
69 { LinkedHashMap.class.getName(), new LinkedHashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, in mapProvider()
165 Collector<Integer, ?, ? extends Collection<Integer>> collector = m instanceof LinkedHashMap in getCollector()
DLockStep.java37 import java.util.LinkedHashMap;
106 new LinkedHashMap(16), in testLockStep()
DGet.java35 import java.util.LinkedHashMap;
54 testMap(new LinkedHashMap<>()); in testGet()
/libcore/ojluni/src/main/java/java/io/
DExpiringCache.java33 import java.util.LinkedHashMap;
67 map = new LinkedHashMap<String,Entry>() { in ExpiringCache()
/libcore/ojluni/src/main/java/sun/util/locale/provider/
DCalendarDataUtility.java36 import java.util.LinkedHashMap;
315 Map<String, Integer> result = new LinkedHashMap<>(); in retrieveFieldValueNamesImpl()
325 return new LinkedHashMap<>(); in retrieveFieldValueNamesImpl()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLParameters.java35 import java.util.LinkedHashMap;
299 sniNames = new LinkedHashMap<>(serverNames.size()); in setServerNames()

123