public interface CharKeyMap
Map| 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.
|
CharKeyMapIterator |
entries()
Returns an iterator over the entries of this map.
|
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.
|
CharSet |
keySet()
Returns a set view of the keys of this map.
|
java.lang.Object |
put(char key,
java.lang.Object value)
Adds a mapping from a specified key to a specified value to
this map.
|
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.util.Collection |
values()
Returns a collection view of the values in this map.
|
void clear()
boolean containsKey(char key)
key - the key to test for.boolean containsValue(java.lang.Object value)
value - the value to test for.CharKeyMapIterator entries()
boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object with which to compare this map.java.lang.Object get(char key)
key - the key to map to a value.int hashCode()
hashCode in class java.lang.Objectboolean isEmpty()
CharSet keySet()
java.lang.Object put(char key,
java.lang.Object value)
key - the key of the mapping to add to this map.value - the value of the mapping to add to this map.java.lang.UnsupportedOperationException - if the operation is not supported by this map.void putAll(CharKeyMap map)
map - the map whose mappings to add to this map.java.lang.NullPointerException - if map is null.java.lang.UnsupportedOperationException - if the operation is not supported by this map.java.lang.Object remove(char key)
key - the key whose mapping to remove from this map.java.lang.UnsupportedOperationException - if the operation is not supported by this map.int size()
java.util.Collection values()