public class TSynchronizedDoubleFloatMap extends java.lang.Object implements TDoubleFloatMap, java.io.Serializable
| Constructor and Description |
|---|
TSynchronizedDoubleFloatMap(TDoubleFloatMap m) |
TSynchronizedDoubleFloatMap(TDoubleFloatMap m,
java.lang.Object mutex) |
| Modifier and Type | Method and Description |
|---|---|
float |
adjustOrPutValue(double key,
float adjust_amount,
float put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(double key,
float amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(double key)
Checks for the present of key in the keys of the map.
|
boolean |
containsValue(float value)
Checks for the presence of val in the values of the map.
|
boolean |
equals(java.lang.Object o) |
boolean |
forEachEntry(TDoubleFloatProcedure procedure)
Executes procedure for each key/value entry in the
map.
|
boolean |
forEachKey(TDoubleProcedure procedure)
Executes procedure for each key in the map.
|
boolean |
forEachValue(TFloatProcedure procedure)
Executes procedure for each value in the map.
|
float |
get(double key)
Retrieves the value for key.
|
double |
getNoEntryKey()
Returns the value that will be returned from
TDoubleFloatMap.get(double) or TDoubleFloatMap.put(double, float) if no
entry exists for a given key. |
float |
getNoEntryValue()
Returns the value that will be returned from
TDoubleFloatMap.get(double) or TDoubleFloatMap.put(double, float) if no
entry exists for a given key. |
int |
hashCode() |
boolean |
increment(double key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
TDoubleFloatIterator |
iterator() |
double[] |
keys()
Returns the keys of the map as an array of double values.
|
double[] |
keys(double[] array)
Returns the keys of the map.
|
TDoubleSet |
keySet()
Returns the keys of the map as a TDoubleSet
|
float |
put(double key,
float value)
Inserts a key/value pair into the map.
|
void |
putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Float> map)
Put all the entries from the given Map into this map.
|
void |
putAll(TDoubleFloatMap map)
Put all the entries from the given map into this map.
|
float |
putIfAbsent(double key,
float value)
Inserts a key/value pair into the map if the specified key is not already
associated with a value.
|
float |
remove(double key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TDoubleFloatProcedure 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(TFloatFunction function)
Transform the values in this map using function.
|
TFloatCollection |
valueCollection()
Returns the values of the map as a TFloatCollection
|
float[] |
values()
Returns the values of the map as an array of #e# values.
|
float[] |
values(float[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedDoubleFloatMap(TDoubleFloatMap m)
public TSynchronizedDoubleFloatMap(TDoubleFloatMap m, java.lang.Object mutex)
public int size()
TDoubleFloatMapsize in interface TDoubleFloatMappublic boolean isEmpty()
TDoubleFloatMapisEmpty in interface TDoubleFloatMappublic boolean containsKey(double key)
TDoubleFloatMapcontainsKey in interface TDoubleFloatMappublic boolean containsValue(float value)
TDoubleFloatMapcontainsValue in interface TDoubleFloatMappublic float get(double key)
TDoubleFloatMapget in interface TDoubleFloatMapTDoubleFloatMap.getNoEntryValue()).public float put(double key,
float value)
TDoubleFloatMapput in interface TDoubleFloatMapTDoubleFloatMap.getNoEntryValue()).public float remove(double key)
TDoubleFloatMapremove in interface TDoubleFloatMapkey - an double valueTDoubleFloatMap.getNoEntryValue()).public void putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Float> map)
TDoubleFloatMapputAll in interface TDoubleFloatMapmap - The Map from which entries will be obtained to put into this map.public void putAll(TDoubleFloatMap map)
TDoubleFloatMapputAll in interface TDoubleFloatMapmap - The map from which entries will be obtained to put into this map.public void clear()
TDoubleFloatMapclear in interface TDoubleFloatMappublic TDoubleSet keySet()
TDoubleFloatMapkeySet in interface TDoubleFloatMappublic double[] keys()
TDoubleFloatMapkeys in interface TDoubleFloatMappublic double[] keys(double[] array)
TDoubleFloatMapkeys in interface TDoubleFloatMaparray - 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 TFloatCollection valueCollection()
TDoubleFloatMapvalueCollection in interface TDoubleFloatMappublic float[] values()
TDoubleFloatMapvalues in interface TDoubleFloatMappublic float[] values(float[] array)
TDoubleFloatMapvalues in interface TDoubleFloatMaparray - 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 TDoubleFloatIterator iterator()
iterator in interface TDoubleFloatMappublic double getNoEntryKey()
TDoubleFloatMapTDoubleFloatMap.get(double) or TDoubleFloatMap.put(double, float) 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 TDoubleFloatMappublic float getNoEntryValue()
TDoubleFloatMapTDoubleFloatMap.get(double) or TDoubleFloatMap.put(double, float) 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 TDoubleFloatMappublic float putIfAbsent(double key,
float value)
TDoubleFloatMapputIfAbsent in interface TDoubleFloatMapTDoubleFloatMap.getNoEntryValue()).public boolean forEachKey(TDoubleProcedure procedure)
TDoubleFloatMapforEachKey in interface TDoubleFloatMapprocedure - a TDoubleProcedure valuepublic boolean forEachValue(TFloatProcedure procedure)
TDoubleFloatMapforEachValue in interface TDoubleFloatMapprocedure - a T#F#Procedure valuepublic boolean forEachEntry(TDoubleFloatProcedure procedure)
TDoubleFloatMapforEachEntry in interface TDoubleFloatMapprocedure - a TODoubleFloatProcedure valuepublic void transformValues(TFloatFunction function)
TDoubleFloatMaptransformValues in interface TDoubleFloatMapfunction - a TFloatFunction valuepublic boolean retainEntries(TDoubleFloatProcedure procedure)
TDoubleFloatMapretainEntries in interface TDoubleFloatMapprocedure - determines which entries to keeppublic boolean increment(double key)
TDoubleFloatMapincrement in interface TDoubleFloatMapkey - the key of the value to incrementpublic boolean adjustValue(double key,
float amount)
TDoubleFloatMapadjustValue in interface TDoubleFloatMapkey - the key of the value to incrementamount - the amount to adjust the value by.public float adjustOrPutValue(double key,
float adjust_amount,
float put_amount)
TDoubleFloatMapadjustOrPutValue in interface TDoubleFloatMapkey - 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