public class TSynchronizedCharCharMap extends java.lang.Object implements TCharCharMap, java.io.Serializable
| Constructor and Description |
|---|
TSynchronizedCharCharMap(TCharCharMap m) |
TSynchronizedCharCharMap(TCharCharMap m,
java.lang.Object mutex) |
| Modifier and Type | Method and Description |
|---|---|
char |
adjustOrPutValue(char key,
char adjust_amount,
char put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(char key,
char amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(char key)
Checks for the present of key in the keys of the map.
|
boolean |
containsValue(char value)
Checks for the presence of val in the values of the map.
|
boolean |
equals(java.lang.Object o) |
boolean |
forEachEntry(TCharCharProcedure procedure)
Executes procedure for each key/value entry in the
map.
|
boolean |
forEachKey(TCharProcedure procedure)
Executes procedure for each key in the map.
|
boolean |
forEachValue(TCharProcedure procedure)
Executes procedure for each value in the map.
|
char |
get(char key)
Retrieves the value for key.
|
char |
getNoEntryKey()
Returns the value that will be returned from
TCharCharMap.get(char) or TCharCharMap.put(char, char) if no
entry exists for a given key. |
char |
getNoEntryValue()
Returns the value that will be returned from
TCharCharMap.get(char) or TCharCharMap.put(char, char) if no
entry exists for a given key. |
int |
hashCode() |
boolean |
increment(char key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
TCharCharIterator |
iterator() |
char[] |
keys()
Returns the keys of the map as an array of char values.
|
char[] |
keys(char[] array)
Returns the keys of the map.
|
TCharSet |
keySet()
Returns the keys of the map as a TCharSet
|
char |
put(char key,
char value)
Inserts a key/value pair into the map.
|
void |
putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Character> map)
Put all the entries from the given Map into this map.
|
void |
putAll(TCharCharMap map)
Put all the entries from the given map into this map.
|
char |
putIfAbsent(char key,
char value)
Inserts a key/value pair into the map if the specified key is not already
associated with a value.
|
char |
remove(char key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TCharCharProcedure procedure)
Retains only those entries in the map for which the procedure
returns a true value.
|
int |
size()
Returns an int value that is the number of elements in the map.
|
java.lang.String |
toString() |
void |
transformValues(TCharFunction function)
Transform the values in this map using function.
|
TCharCollection |
valueCollection()
Returns the values of the map as a TCharCollection
|
char[] |
values()
Returns the values of the map as an array of #e# values.
|
char[] |
values(char[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedCharCharMap(TCharCharMap m)
public TSynchronizedCharCharMap(TCharCharMap m, java.lang.Object mutex)
public int size()
TCharCharMapsize in interface TCharCharMappublic boolean isEmpty()
TCharCharMapisEmpty in interface TCharCharMappublic boolean containsKey(char key)
TCharCharMapcontainsKey in interface TCharCharMappublic boolean containsValue(char value)
TCharCharMapcontainsValue in interface TCharCharMappublic char get(char key)
TCharCharMapget in interface TCharCharMapTCharCharMap.getNoEntryValue()).public char put(char key,
char value)
TCharCharMapput in interface TCharCharMapTCharCharMap.getNoEntryValue()).public char remove(char key)
TCharCharMapremove in interface TCharCharMapkey - an char valueTCharCharMap.getNoEntryValue()).public void putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Character> map)
TCharCharMapputAll in interface TCharCharMapmap - The Map from which entries will be obtained to put into this map.public void putAll(TCharCharMap map)
TCharCharMapputAll in interface TCharCharMapmap - The map from which entries will be obtained to put into this map.public void clear()
TCharCharMapclear in interface TCharCharMappublic TCharSet keySet()
TCharCharMapkeySet in interface TCharCharMappublic char[] keys()
TCharCharMapkeys in interface TCharCharMappublic char[] keys(char[] array)
TCharCharMapkeys in interface TCharCharMaparray - the array into which the elements of the list are to be stored,
if it is big enough; otherwise, a new array of the same type is
allocated for this purpose.public TCharCollection valueCollection()
TCharCharMapvalueCollection in interface TCharCharMappublic char[] values()
TCharCharMapvalues in interface TCharCharMappublic char[] values(char[] array)
TCharCharMapvalues in interface TCharCharMaparray - the array into which the elements of the list are to be stored,
if it is big enough; otherwise, a new array of the same type is
allocated for this purpose.public TCharCharIterator iterator()
iterator in interface TCharCharMappublic char getNoEntryKey()
TCharCharMapTCharCharMap.get(char) or TCharCharMap.put(char, char) if no
entry exists for a given key. The default value is generally zero, but can be
configured during construction of the collection.getNoEntryKey in interface TCharCharMappublic char getNoEntryValue()
TCharCharMapTCharCharMap.get(char) or TCharCharMap.put(char, char) if no
entry exists for a given key. The default value is generally zero, but can be
configured during construction of the collection.getNoEntryValue in interface TCharCharMappublic char putIfAbsent(char key,
char value)
TCharCharMapputIfAbsent in interface TCharCharMapTCharCharMap.getNoEntryValue()).public boolean forEachKey(TCharProcedure procedure)
TCharCharMapforEachKey in interface TCharCharMapprocedure - a TCharProcedure valuepublic boolean forEachValue(TCharProcedure procedure)
TCharCharMapforEachValue in interface TCharCharMapprocedure - a T#F#Procedure valuepublic boolean forEachEntry(TCharCharProcedure procedure)
TCharCharMapforEachEntry in interface TCharCharMapprocedure - a TOCharCharProcedure valuepublic void transformValues(TCharFunction function)
TCharCharMaptransformValues in interface TCharCharMapfunction - a TCharFunction valuepublic boolean retainEntries(TCharCharProcedure procedure)
TCharCharMapretainEntries in interface TCharCharMapprocedure - determines which entries to keeppublic boolean increment(char key)
TCharCharMapincrement in interface TCharCharMapkey - the key of the value to incrementpublic boolean adjustValue(char key,
char amount)
TCharCharMapadjustValue in interface TCharCharMapkey - the key of the value to incrementamount - the amount to adjust the value by.public char adjustOrPutValue(char key,
char adjust_amount,
char put_amount)
TCharCharMapadjustOrPutValue in interface TCharCharMapkey - the key of the value to incrementadjust_amount - the amount to adjust the value byput_amount - the value put into the map if the key is not presentpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object