public class TSynchronizedCharCharMap extends Objectimplements TCharCharMap , Serializable
| Constructor and Description |
|---|
TSynchronizedCharCharMap(TCharCharMap
|
TSynchronizedCharCharMap(TCharCharMap
|
| 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(Object
|
boolean |
forEachEntry(TCharCharProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TCharProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TCharProcedure
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 or
TCharCharMap if no entry exists for a given key.
|
char |
getNoEntryValue()
Returns the value that will be returned from
TCharCharMap or
TCharCharMap 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(Map
Put all the entries from the given Map into this map.
|
void |
putAll(TCharCharMap
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
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.
|
String |
toString()
|
void |
transformValues(TCharFunction
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(TCharCharMapm)
public TSynchronizedCharCharMap(TCharCharMapm, Object mutex)
public int size()
TCharCharMap
size in interface
TCharCharMap
public boolean isEmpty()
TCharCharMap
isEmpty in interface
TCharCharMap
public boolean containsKey(char key)
TCharCharMap
containsKey in interface
TCharCharMap
key - an
char value
boolean value
public boolean containsValue(char value)
TCharCharMap
containsValue in interface
TCharCharMap
value - an
char value
boolean value
public char get(char key)
TCharCharMap
get in interface
TCharCharMap
key - an
char value
TCharCharMap.getNoEntryValue() ).
public char put(char key,
char value)
TCharCharMap
put in interface
TCharCharMap
key - an
char value
value - an
char value
TCharCharMap.getNoEntryValue() ).
public char remove(char key)
TCharCharMap
remove in interface
TCharCharMap
key - an
char value
TCharCharMap.getNoEntryValue() ).
public void putAll(Map<? extends Character ,? extends Character > map)
TCharCharMap
putAll in interface
TCharCharMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TCharCharMapmap)
TCharCharMap
putAll in interface
TCharCharMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TCharCharMap
public TCharSetkeySet()
TCharCharMap
keySet in interface
TCharCharMap
public char[] keys()
TCharCharMap
keys in interface
TCharCharMap
public char[] keys(char[] array)
TCharCharMap
keys in interface
TCharCharMap
array - 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 TCharCollectionvalueCollection()
TCharCharMap
valueCollection in interface
TCharCharMap
public char[] values()
TCharCharMap
values in interface
TCharCharMap
public char[] values(char[] array)
TCharCharMap
values in interface
TCharCharMap
array - 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 TCharCharIteratoriterator()
iterator in interface
TCharCharMap
public char getNoEntryKey()
TCharCharMap
TCharCharMap.get(char) or
TCharCharMap.put(char, char) if no entry exists for a given key. The default value is generally zero, but can be changed during construction of the collection.
getNoEntryKey in interface
TCharCharMap
public char getNoEntryValue()
TCharCharMap
TCharCharMap.get(char) or
TCharCharMap.put(char, char) if no entry exists for a given key. The default value is generally zero, but can be changed during construction of the collection.
getNoEntryValue in interface
TCharCharMap
public char putIfAbsent(char key,
char value)
TCharCharMap
putIfAbsent in interface
TCharCharMap
key - an
char value
value - an
char value
TCharCharMap.getNoEntryValue() ).
public boolean forEachKey(TCharProcedureprocedure)
TCharCharMap
forEachKey in interface
TCharCharMap
procedure - a
TCharProcedure value
public boolean forEachValue(TCharProcedureprocedure)
TCharCharMap
forEachValue in interface
TCharCharMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TCharCharProcedureprocedure)
TCharCharMap
forEachEntry in interface
TCharCharMap
procedure - a
TOCharCharProcedure value
public void transformValues(TCharFunctionfunction)
TCharCharMap
transformValues in interface
TCharCharMap
function - a
TCharFunction value
public boolean retainEntries(TCharCharProcedureprocedure)
TCharCharMap
retainEntries in interface
TCharCharMap
procedure - determines which entries to keep
public boolean increment(char key)
TCharCharMap
increment in interface
TCharCharMap
key - the key of the value to increment
public boolean adjustValue(char key,
char amount)
TCharCharMap
adjustValue in interface
TCharCharMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public char adjustOrPutValue(char key,
char adjust_amount,
char put_amount)
TCharCharMap
adjustOrPutValue in interface
TCharCharMap
key - the key of the value to increment
adjust_amount - the amount to adjust the value by
put_amount - the value put into the map if the key is not initial present
public boolean equals(Objecto)
public int hashCode()
public StringtoString()