public class TSynchronizedCharDoubleMap extends Objectimplements TCharDoubleMap , Serializable
| Constructor and Description |
|---|
TSynchronizedCharDoubleMap(TCharDoubleMap
|
TSynchronizedCharDoubleMap(TCharDoubleMap
|
| Modifier and Type | Method and Description |
|---|---|
double |
adjustOrPutValue(char key, double adjust_amount, double put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(char key, double 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(double value)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TCharDoubleProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TCharProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TDoubleProcedure
Executes
procedure for each value in the map.
|
double |
get(char key)
Retrieves the value for
key
|
char |
getNoEntryKey()
Returns the value that will be returned from
TCharDoubleMap or
TCharDoubleMap if no entry exists for a given key.
|
double |
getNoEntryValue()
Returns the value that will be returned from
TCharDoubleMap or
TCharDoubleMap 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.
|
TCharDoubleIterator |
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
|
double |
put(char key, double 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(TCharDoubleMap
Put all the entries from the given map into this map.
|
double |
putIfAbsent(char key, double value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
double |
remove(char key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TCharDoubleProcedure
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(TDoubleFunction
Transform the values in this map using
function.
|
TDoubleCollection |
valueCollection()
Returns the values of the map as a
TDoubleCollection
|
double[] |
values()
Returns the values of the map as an array of
#e# values.
|
double[] |
values(double[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedCharDoubleMap(TCharDoubleMapm)
public TSynchronizedCharDoubleMap(TCharDoubleMapm, Object mutex)
public int size()
TCharDoubleMap
size in interface
TCharDoubleMap
public boolean isEmpty()
TCharDoubleMap
isEmpty in interface
TCharDoubleMap
public boolean containsKey(char key)
TCharDoubleMap
containsKey in interface
TCharDoubleMap
key - an
char value
boolean value
public boolean containsValue(double value)
TCharDoubleMap
containsValue in interface
TCharDoubleMap
value - an
double value
boolean value
public double get(char key)
TCharDoubleMap
get in interface
TCharDoubleMap
key - an
char value
TCharDoubleMap.getNoEntryValue() ).
public double put(char key,
double value)
TCharDoubleMap
put in interface
TCharDoubleMap
key - an
char value
value - an
double value
TCharDoubleMap.getNoEntryValue() ).
public double remove(char key)
TCharDoubleMap
remove in interface
TCharDoubleMap
key - an
char value
TCharDoubleMap.getNoEntryValue() ).
public void putAll(Map<? extends Character ,? extends Double > map)
TCharDoubleMap
putAll in interface
TCharDoubleMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TCharDoubleMapmap)
TCharDoubleMap
putAll in interface
TCharDoubleMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TCharDoubleMap
public TCharSetkeySet()
TCharDoubleMap
keySet in interface
TCharDoubleMap
public char[] keys()
TCharDoubleMap
keys in interface
TCharDoubleMap
public char[] keys(char[] array)
TCharDoubleMap
keys in interface
TCharDoubleMap
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 TDoubleCollectionvalueCollection()
TCharDoubleMap
valueCollection in interface
TCharDoubleMap
public double[] values()
TCharDoubleMap
values in interface
TCharDoubleMap
public double[] values(double[] array)
TCharDoubleMap
values in interface
TCharDoubleMap
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 TCharDoubleIteratoriterator()
iterator in interface
TCharDoubleMap
public char getNoEntryKey()
TCharDoubleMap
TCharDoubleMap.get(char) or
TCharDoubleMap.put(char, double) 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
TCharDoubleMap
public double getNoEntryValue()
TCharDoubleMap
TCharDoubleMap.get(char) or
TCharDoubleMap.put(char, double) 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
TCharDoubleMap
public double putIfAbsent(char key,
double value)
TCharDoubleMap
putIfAbsent in interface
TCharDoubleMap
key - an
char value
value - an
double value
TCharDoubleMap.getNoEntryValue() ).
public boolean forEachKey(TCharProcedureprocedure)
TCharDoubleMap
forEachKey in interface
TCharDoubleMap
procedure - a
TCharProcedure value
public boolean forEachValue(TDoubleProcedureprocedure)
TCharDoubleMap
forEachValue in interface
TCharDoubleMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TCharDoubleProcedureprocedure)
TCharDoubleMap
forEachEntry in interface
TCharDoubleMap
procedure - a
TOCharDoubleProcedure value
public void transformValues(TDoubleFunctionfunction)
TCharDoubleMap
transformValues in interface
TCharDoubleMap
function - a
TDoubleFunction value
public boolean retainEntries(TCharDoubleProcedureprocedure)
TCharDoubleMap
retainEntries in interface
TCharDoubleMap
procedure - determines which entries to keep
public boolean increment(char key)
TCharDoubleMap
increment in interface
TCharDoubleMap
key - the key of the value to increment
public boolean adjustValue(char key,
double amount)
TCharDoubleMap
adjustValue in interface
TCharDoubleMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public double adjustOrPutValue(char key,
double adjust_amount,
double put_amount)
TCharDoubleMap
adjustOrPutValue in interface
TCharDoubleMap
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()