Package org.eclipse.m2m.atl.emftvm.util
Class TypeHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- org.eclipse.m2m.atl.emftvm.util.TypeHashMap<K,V>
-
- Type Parameters:
K
-V
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,V>
,TypeMap<K,V>
public class TypeHashMap<K,V> extends java.util.HashMap<K,V> implements TypeMap<K,V>
HashMap
implementation ofTypeMap
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
findAllKeys(java.lang.Object key, java.util.Set<java.lang.Object> keys)
Finds this key, if contained, and any contained supertype keys.java.lang.Object
findKey(java.lang.Object key)
Finds this key or a supertype key if contained, ornull
if neither is not contained.V
put(K key, V value)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
findKey
public java.lang.Object findKey(java.lang.Object key)
Finds this key or a supertype key if contained, ornull
if neither is not contained.
-
findAllKeys
public void findAllKeys(java.lang.Object key, java.util.Set<java.lang.Object> keys)
Finds this key, if contained, and any contained supertype keys.- Specified by:
findAllKeys
in interfaceTypeMap<K,V>
- Parameters:
key
- the key to findkeys
- the collection in which to store the found keys- See Also:
TypeMap.findAllKeys(java.lang.Object, java.util.Set)
-
-