public abstract class MapWrapper<T,E>
extends java.lang.Object
implements java.util.Map<T,E>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<T,E> |
delegate
The delegate map.
|
Constructor and Description |
---|
MapWrapper(java.util.Map<T,E> delegate)
Create a new collection wrapper.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
protected void |
entriesAdded(java.util.Set<java.util.Map.Entry<T,E>> entries)
Entries were added to the map.
|
protected void |
entriesRemoved(java.util.Set<java.util.Map.Entry<T,E>> entries)
Entries were removed from the map.
|
protected abstract void |
entryAdded(T key,
E value)
An entry was added to the map.
|
protected abstract void |
entryChanged(T key,
E oldvalue,
E newvalue)
An entry was changed in the map.
|
protected abstract void |
entryRemoved(T key,
E value)
An entry was removed from the map.
|
java.util.Set<java.util.Map.Entry<T,E>> |
entrySet() |
boolean |
equals(java.lang.Object obj)
Test if this object equals another.
|
E |
get(java.lang.Object key) |
int |
hashCode()
Get the hashcode of the object.
|
boolean |
isEmpty() |
java.util.Set<T> |
keySet() |
E |
put(T key,
E value) |
void |
putAll(java.util.Map<? extends T,? extends E> m) |
E |
remove(java.lang.Object key) |
int |
size() |
java.lang.String |
toString()
Get the string representation.
|
java.util.Collection<E> |
values() |
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract void entryRemoved(T key, E value)
protected abstract void entryChanged(T key, E oldvalue, E newvalue)
protected void entriesAdded(java.util.Set<java.util.Map.Entry<T,E>> entries)