|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.map.AbstractCharKeyCharMap
This class represents an abstract base for implementing maps from char values to char values. All operations that can be implemented using iterators are implemented as such. In most cases, this is hardly an efficient solution, and at least some of those methods should be overridden by sub-classes.
| Constructor Summary | |
protected |
AbstractCharKeyCharMap()
Default constructor to be invoked by sub-classes. |
| Method Summary | |
void |
clear()
Clears this map. |
boolean |
containsKey(char key)
Indicates whether this map contains a mapping from a specified key. |
boolean |
containsValue(char 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. |
char |
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(CharKeyCharMap map)
Adds all mappings from a specified map to this map. |
char |
remove(char key)
Removes the mapping from a specified key from this map. |
int |
size()
Returns the size of this map. |
char |
tget(char key)
Maps a specified key to a value. |
String |
toString()
Returns a string representation of this map. |
void |
trimToSize()
Does nothing. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface bak.pcj.map.CharKeyCharMap |
entries, keySet, lget, put, values |
| Constructor Detail |
protected AbstractCharKeyCharMap()
| Method Detail |
public void clear()
CharKeyCharMap
clear in interface CharKeyCharMappublic char remove(char key)
CharKeyCharMap
remove in interface CharKeyCharMapkey - the key whose mapping to remove from this map.
MapDefaultspublic void putAll(CharKeyCharMap map)
CharKeyCharMap
putAll in interface CharKeyCharMapmap - the map whose mappings to add to this map.public boolean containsKey(char key)
CharKeyCharMaplget() will return the corresponding value.
containsKey in interface CharKeyCharMapkey - the key to test for.
CharKeyCharMap.lget()public char get(char key)
CharKeyCharMap
get in interface CharKeyCharMapkey - the key to map to a value.
MapDefaults,
CharKeyCharMap.tget(char),
CharKeyCharMap.lget()public boolean containsValue(char value)
CharKeyCharMap
containsValue in interface CharKeyCharMapvalue - the value to test for.
public boolean equals(Object obj)
CharKeyCharMap
equals in interface CharKeyCharMappublic int hashCode()
CharKeyCharMap
hashCode in interface CharKeyCharMappublic boolean isEmpty()
CharKeyCharMap
isEmpty in interface CharKeyCharMappublic int size()
CharKeyCharMap
size in interface CharKeyCharMappublic char tget(char key)
CharKeyCharMap
tget in interface CharKeyCharMapkey - the key to map to a value.
CharKeyCharMap.get(char),
CharKeyCharMap.lget()public String toString()
public void trimToSize()
trimToSize in interface CharKeyCharMap
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||