public abstract class AbstractCharKeyMap extends 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(Object value)
Indicates whether this map contains a mapping to a specified
value.
|
boolean |
equals(Object obj)
Indicates whether this map is equal to some object.
|
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.
|
Object |
remove(char key)
Removes the mapping from a specified key from this map.
|
int |
size()
Returns the size of this map.
|
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 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 Object get(char key)
CharKeyMapget in interface CharKeyMapkey - the key to map to a value.public boolean containsValue(Object value)
CharKeyMapcontainsValue in interface CharKeyMapvalue - the value to test for.public boolean equals(Object obj)
CharKeyMapequals in interface CharKeyMapequals in class Objectobj - the object with which to compare this map.public int hashCode()
CharKeyMaphashCode in interface CharKeyMaphashCode in class Objectpublic boolean isEmpty()
CharKeyMapisEmpty in interface CharKeyMappublic int size()
CharKeyMapsize in interface CharKeyMappublic String toString()
public void trimToSize()
Copyright © 2011–2025. All rights reserved.