public abstract class AbstractCharKeyMap extends java.lang.Object implements CharKeyMap
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCharKeyMap()
Default constructor to be invoked by sub-classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this map.
|
boolean |
containsKey(char key)
Indicates whether this map contains a mapping from a specified
key.
|
boolean |
containsValue(java.lang.Object value)
Indicates whether this map contains a mapping to a specified
value.
|
boolean |
equals(java.lang.Object obj)
Indicates whether this map is equal to some object.
|
java.lang.Object |
get(char key)
Maps a specified key to a value.
|
int |
hashCode()
Returns a hash code value for this map.
|
boolean |
isEmpty()
Indicates whether this map is empty.
|
void |
putAll(CharKeyMap map)
Adds all mappings from a specified map to this map.
|
java.lang.Object |
remove(char key)
Removes the mapping from a specified key from this map.
|
int |
size()
Returns the size of this map.
|
java.lang.String |
toString()
Returns a string representation of this map.
|
void |
trimToSize()
Does nothing.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitentries, keySet, put, valuesprotected AbstractCharKeyMap()
public void clear()
CharKeyMapclear in interface CharKeyMappublic java.lang.Object remove(char key)
CharKeyMapremove in interface CharKeyMapkey - the key whose mapping to remove from this map.public void putAll(CharKeyMap map)
CharKeyMapputAll in interface CharKeyMapmap - the map whose mappings to add to this map.public boolean containsKey(char key)
CharKeyMapcontainsKey in interface CharKeyMapkey - the key to test for.public java.lang.Object get(char key)
CharKeyMapget in interface CharKeyMapkey - the key to map to a value.public boolean containsValue(java.lang.Object value)
CharKeyMapcontainsValue in interface CharKeyMapvalue - the value to test for.public boolean equals(java.lang.Object obj)
CharKeyMapequals in interface CharKeyMapequals in class java.lang.Objectobj - the object with which to compare this map.public int hashCode()
CharKeyMaphashCode in interface CharKeyMaphashCode in class java.lang.Objectpublic boolean isEmpty()
CharKeyMapisEmpty in interface CharKeyMappublic int size()
CharKeyMapsize in interface CharKeyMappublic java.lang.String toString()
toString in class java.lang.Objectpublic void trimToSize()