public class TSynchronizedDoubleIntMap extends Objectimplements TDoubleIntMap , Serializable
| Constructor and Description |
|---|
TSynchronizedDoubleIntMap(TDoubleIntMap
|
TSynchronizedDoubleIntMap(TDoubleIntMap
|
| Modifier and Type | Method and Description |
|---|---|
int |
adjustOrPutValue(double key, int adjust_amount, int put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(double key, int 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(int value)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TDoubleIntProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TDoubleProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TIntProcedure
Executes
procedure for each value in the map.
|
int |
get(double key)
Retrieves the value for
key
|
double |
getNoEntryKey()
Returns the value that will be returned from
TDoubleIntMap or
TDoubleIntMap if no entry exists for a given key.
|
int |
getNoEntryValue()
Returns the value that will be returned from
TDoubleIntMap or
TDoubleIntMap 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.
|
TDoubleIntIterator |
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
|
int |
put(double key, int 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(TDoubleIntMap
Put all the entries from the given map into this map.
|
int |
putIfAbsent(double key, int value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
int |
remove(double key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TDoubleIntProcedure
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(TIntFunction
Transform the values in this map using
function.
|
TIntCollection |
valueCollection()
Returns the values of the map as a
TIntCollection
|
int[] |
values()
Returns the values of the map as an array of
#e# values.
|
int[] |
values(int[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedDoubleIntMap(TDoubleIntMapm)
public TSynchronizedDoubleIntMap(TDoubleIntMapm, Object mutex)
public int size()
TDoubleIntMap
size in interface
TDoubleIntMap
public boolean isEmpty()
TDoubleIntMap
isEmpty in interface
TDoubleIntMap
public boolean containsKey(double key)
TDoubleIntMap
containsKey in interface
TDoubleIntMap
key - an
double value
boolean value
public boolean containsValue(int value)
TDoubleIntMap
containsValue in interface
TDoubleIntMap
value - an
int value
boolean value
public int get(double key)
TDoubleIntMap
get in interface
TDoubleIntMap
key - an
double value
TDoubleIntMap.getNoEntryValue() ).
public int put(double key,
int value)
TDoubleIntMap
put in interface
TDoubleIntMap
key - an
double value
value - an
int value
TDoubleIntMap.getNoEntryValue() ).
public int remove(double key)
TDoubleIntMap
remove in interface
TDoubleIntMap
key - an
double value
TDoubleIntMap.getNoEntryValue() ).
public void putAll(Map<? extends Double ,? extends Integer > map)
TDoubleIntMap
putAll in interface
TDoubleIntMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TDoubleIntMapmap)
TDoubleIntMap
putAll in interface
TDoubleIntMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TDoubleIntMap
public TDoubleSetkeySet()
TDoubleIntMap
keySet in interface
TDoubleIntMap
public double[] keys()
TDoubleIntMap
keys in interface
TDoubleIntMap
public double[] keys(double[] array)
TDoubleIntMap
keys in interface
TDoubleIntMap
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 TIntCollectionvalueCollection()
TDoubleIntMap
valueCollection in interface
TDoubleIntMap
public int[] values()
TDoubleIntMap
values in interface
TDoubleIntMap
public int[] values(int[] array)
TDoubleIntMap
values in interface
TDoubleIntMap
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 TDoubleIntIteratoriterator()
iterator in interface
TDoubleIntMap
public double getNoEntryKey()
TDoubleIntMap
TDoubleIntMap.get(double) or
TDoubleIntMap.put(double, int) 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
TDoubleIntMap
public int getNoEntryValue()
TDoubleIntMap
TDoubleIntMap.get(double) or
TDoubleIntMap.put(double, int) 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
TDoubleIntMap
public int putIfAbsent(double key,
int value)
TDoubleIntMap
putIfAbsent in interface
TDoubleIntMap
key - an
double value
value - an
int value
TDoubleIntMap.getNoEntryValue() ).
public boolean forEachKey(TDoubleProcedureprocedure)
TDoubleIntMap
forEachKey in interface
TDoubleIntMap
procedure - a
TDoubleProcedure value
public boolean forEachValue(TIntProcedureprocedure)
TDoubleIntMap
forEachValue in interface
TDoubleIntMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TDoubleIntProcedureprocedure)
TDoubleIntMap
forEachEntry in interface
TDoubleIntMap
procedure - a
TODoubleIntProcedure value
public void transformValues(TIntFunctionfunction)
TDoubleIntMap
transformValues in interface
TDoubleIntMap
function - a
TIntFunction value
public boolean retainEntries(TDoubleIntProcedureprocedure)
TDoubleIntMap
retainEntries in interface
TDoubleIntMap
procedure - determines which entries to keep
public boolean increment(double key)
TDoubleIntMap
increment in interface
TDoubleIntMap
key - the key of the value to increment
public boolean adjustValue(double key,
int amount)
TDoubleIntMap
adjustValue in interface
TDoubleIntMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public int adjustOrPutValue(double key,
int adjust_amount,
int put_amount)
TDoubleIntMap
adjustOrPutValue in interface
TDoubleIntMap
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()