public class TSynchronizedLongDoubleMap extends Objectimplements TLongDoubleMap , Serializable
| Constructor and Description |
|---|
TSynchronizedLongDoubleMap(TLongDoubleMap
|
TSynchronizedLongDoubleMap(TLongDoubleMap
|
| Modifier and Type | Method and Description |
|---|---|
double |
adjustOrPutValue(long 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(long key, double amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(long 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(TLongDoubleProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TLongProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TDoubleProcedure
Executes
procedure for each value in the map.
|
double |
get(long key)
Retrieves the value for
key
|
long |
getNoEntryKey()
Returns the value that will be returned from
TLongDoubleMap or
TLongDoubleMap if no entry exists for a given key.
|
double |
getNoEntryValue()
Returns the value that will be returned from
TLongDoubleMap or
TLongDoubleMap if no entry exists for a given key.
|
int |
hashCode()
|
boolean |
increment(long key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings.
|
TLongDoubleIterator |
iterator()
|
long[] |
keys()
Returns the keys of the map as an array of
long values.
|
long[] |
keys(long[] array)
Returns the keys of the map.
|
TLongSet |
keySet()
Returns the keys of the map as a
TLongSet
|
double |
put(long 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(TLongDoubleMap
Put all the entries from the given map into this map.
|
double |
putIfAbsent(long key, double value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
double |
remove(long key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TLongDoubleProcedure
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 TSynchronizedLongDoubleMap(TLongDoubleMapm)
public TSynchronizedLongDoubleMap(TLongDoubleMapm, Object mutex)
public int size()
TLongDoubleMap
size in interface
TLongDoubleMap
public boolean isEmpty()
TLongDoubleMap
isEmpty in interface
TLongDoubleMap
public boolean containsKey(long key)
TLongDoubleMap
containsKey in interface
TLongDoubleMap
key - an
long value
boolean value
public boolean containsValue(double value)
TLongDoubleMap
containsValue in interface
TLongDoubleMap
value - an
double value
boolean value
public double get(long key)
TLongDoubleMap
get in interface
TLongDoubleMap
key - an
long value
TLongDoubleMap.getNoEntryValue() ).
public double put(long key,
double value)
TLongDoubleMap
put in interface
TLongDoubleMap
key - an
long value
value - an
double value
TLongDoubleMap.getNoEntryValue() ).
public double remove(long key)
TLongDoubleMap
remove in interface
TLongDoubleMap
key - an
long value
TLongDoubleMap.getNoEntryValue() ).
public void putAll(Map<? extends Long ,? extends Double > map)
TLongDoubleMap
putAll in interface
TLongDoubleMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TLongDoubleMapmap)
TLongDoubleMap
putAll in interface
TLongDoubleMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TLongDoubleMap
public TLongSetkeySet()
TLongDoubleMap
keySet in interface
TLongDoubleMap
public long[] keys()
TLongDoubleMap
keys in interface
TLongDoubleMap
public long[] keys(long[] array)
TLongDoubleMap
keys in interface
TLongDoubleMap
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()
TLongDoubleMap
valueCollection in interface
TLongDoubleMap
public double[] values()
TLongDoubleMap
values in interface
TLongDoubleMap
public double[] values(double[] array)
TLongDoubleMap
values in interface
TLongDoubleMap
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 TLongDoubleIteratoriterator()
iterator in interface
TLongDoubleMap
public long getNoEntryKey()
TLongDoubleMap
TLongDoubleMap.get(long) or
TLongDoubleMap.put(long, 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
TLongDoubleMap
public double getNoEntryValue()
TLongDoubleMap
TLongDoubleMap.get(long) or
TLongDoubleMap.put(long, 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
TLongDoubleMap
public double putIfAbsent(long key,
double value)
TLongDoubleMap
putIfAbsent in interface
TLongDoubleMap
key - an
long value
value - an
double value
TLongDoubleMap.getNoEntryValue() ).
public boolean forEachKey(TLongProcedureprocedure)
TLongDoubleMap
forEachKey in interface
TLongDoubleMap
procedure - a
TLongProcedure value
public boolean forEachValue(TDoubleProcedureprocedure)
TLongDoubleMap
forEachValue in interface
TLongDoubleMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TLongDoubleProcedureprocedure)
TLongDoubleMap
forEachEntry in interface
TLongDoubleMap
procedure - a
TOLongDoubleProcedure value
public void transformValues(TDoubleFunctionfunction)
TLongDoubleMap
transformValues in interface
TLongDoubleMap
function - a
TDoubleFunction value
public boolean retainEntries(TLongDoubleProcedureprocedure)
TLongDoubleMap
retainEntries in interface
TLongDoubleMap
procedure - determines which entries to keep
public boolean increment(long key)
TLongDoubleMap
increment in interface
TLongDoubleMap
key - the key of the value to increment
public boolean adjustValue(long key,
double amount)
TLongDoubleMap
adjustValue in interface
TLongDoubleMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public double adjustOrPutValue(long key,
double adjust_amount,
double put_amount)
TLongDoubleMap
adjustOrPutValue in interface
TLongDoubleMap
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()