V
- -K
- -public class MyReadOnlyMap<K,V> extends java.lang.Object implements ReadOnlyMap<K,V>
Constructor and Description |
---|
MyReadOnlyMap(java.util.Map<K,V> underLyingMap)
Creates the MyReadOnlyMap with the given underlying map for its mapping
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object obj) |
V |
get(java.lang.Object key) |
int |
hashCode() |
boolean |
isEmpty() |
MyReadOnlySet<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
remove(java.lang.Object key) |
int |
size() |
java.lang.String |
toString() |
MyReadOnlyCollection<V> |
values() |
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public boolean equals(java.lang.Object obj)
public int hashCode()
public MyReadOnlySet<K> keySet()
public java.lang.String toString()
toString
in class java.lang.Object
public MyReadOnlyCollection<V> values()