Package org.antlr.v4.misc
Class OrderedHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- org.antlr.v4.misc.OrderedHashMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,V>
public class OrderedHashMap<K,V> extends java.util.LinkedHashMap<K,V>
I need the get-element-i functionality so I'm subclassing LinkedHashMap.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderedHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
V
getElement(int i)
K
getKey(int i)
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
remove(java.lang.Object key)
-
Methods inherited from class java.util.LinkedHashMap
containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size
-
-
-
-
Field Detail
-
elements
protected java.util.List<K> elements
Track the elements as they are added to the set
-
-