- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- de.haumacher.msgbuf.util.ReferenceMap<K,V>
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>
public abstract class ReferenceMap<K,V> extends HashMap<K,V>
Mapimplementing a map-valued property of a data object that has a reverse end.The reverse end must be handled in concrete subclasses by overriding
beforeAdd(Object, Object)andafterRemove(Object, Object).- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ReferenceMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidafterRemove(K key, V value)protected abstract voidbeforeAdd(K key, V value)voidclear()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> collection)Vremove(Object key)booleanremove(Object key, Object value)-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-