public class TSynchronizedFloatLongMap extends Objectimplements TFloatLongMap , Serializable
| Constructor and Description |
|---|
TSynchronizedFloatLongMap(TFloatLongMap
|
TSynchronizedFloatLongMap(TFloatLongMap
|
| Modifier and Type | Method and Description |
|---|---|
long |
adjustOrPutValue(float key, long adjust_amount, long put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(float key, long amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(float key)
Checks for the present of
key in the keys of the map.
|
boolean |
containsValue(long value)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TFloatLongProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TFloatProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TLongProcedure
Executes
procedure for each value in the map.
|
long |
get(float key)
Retrieves the value for
key
|
float |
getNoEntryKey()
Returns the value that will be returned from
TFloatLongMap or
TFloatLongMap if no entry exists for a given key.
|
long |
getNoEntryValue()
Returns the value that will be returned from
TFloatLongMap or
TFloatLongMap if no entry exists for a given key.
|
int |
hashCode()
|
boolean |
increment(float key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings.
|
TFloatLongIterator |
iterator()
|
float[] |
keys()
Returns the keys of the map as an array of
float values.
|
float[] |
keys(float[] array)
Returns the keys of the map.
|
TFloatSet |
keySet()
Returns the keys of the map as a
TFloatSet
|
long |
put(float key, long 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(TFloatLongMap
Put all the entries from the given map into this map.
|
long |
putIfAbsent(float key, long value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
long |
remove(float key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TFloatLongProcedure
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(TLongFunction
Transform the values in this map using
function.
|
TLongCollection |
valueCollection()
Returns the values of the map as a
TLongCollection
|
long[] |
values()
Returns the values of the map as an array of
#e# values.
|
long[] |
values(long[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedFloatLongMap(TFloatLongMapm)
public TSynchronizedFloatLongMap(TFloatLongMapm, Object mutex)
public int size()
TFloatLongMap
size in interface
TFloatLongMap
public boolean isEmpty()
TFloatLongMap
isEmpty in interface
TFloatLongMap
public boolean containsKey(float key)
TFloatLongMap
containsKey in interface
TFloatLongMap
key - an
float value
boolean value
public boolean containsValue(long value)
TFloatLongMap
containsValue in interface
TFloatLongMap
value - an
long value
boolean value
public long get(float key)
TFloatLongMap
get in interface
TFloatLongMap
key - an
float value
TFloatLongMap.getNoEntryValue() ).
public long put(float key,
long value)
TFloatLongMap
put in interface
TFloatLongMap
key - an
float value
value - an
long value
TFloatLongMap.getNoEntryValue() ).
public long remove(float key)
TFloatLongMap
remove in interface
TFloatLongMap
key - an
float value
TFloatLongMap.getNoEntryValue() ).
public void putAll(Map<? extends Float ,? extends Long > map)
TFloatLongMap
putAll in interface
TFloatLongMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TFloatLongMapmap)
TFloatLongMap
putAll in interface
TFloatLongMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TFloatLongMap
public TFloatSetkeySet()
TFloatLongMap
keySet in interface
TFloatLongMap
public float[] keys()
TFloatLongMap
keys in interface
TFloatLongMap
public float[] keys(float[] array)
TFloatLongMap
keys in interface
TFloatLongMap
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 TLongCollectionvalueCollection()
TFloatLongMap
valueCollection in interface
TFloatLongMap
public long[] values()
TFloatLongMap
values in interface
TFloatLongMap
public long[] values(long[] array)
TFloatLongMap
values in interface
TFloatLongMap
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 TFloatLongIteratoriterator()
iterator in interface
TFloatLongMap
public float getNoEntryKey()
TFloatLongMap
TFloatLongMap.get(float) or
TFloatLongMap.put(float, long) 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
TFloatLongMap
public long getNoEntryValue()
TFloatLongMap
TFloatLongMap.get(float) or
TFloatLongMap.put(float, long) 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
TFloatLongMap
public long putIfAbsent(float key,
long value)
TFloatLongMap
putIfAbsent in interface
TFloatLongMap
key - an
float value
value - an
long value
TFloatLongMap.getNoEntryValue() ).
public boolean forEachKey(TFloatProcedureprocedure)
TFloatLongMap
forEachKey in interface
TFloatLongMap
procedure - a
TFloatProcedure value
public boolean forEachValue(TLongProcedureprocedure)
TFloatLongMap
forEachValue in interface
TFloatLongMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TFloatLongProcedureprocedure)
TFloatLongMap
forEachEntry in interface
TFloatLongMap
procedure - a
TOFloatLongProcedure value
public void transformValues(TLongFunctionfunction)
TFloatLongMap
transformValues in interface
TFloatLongMap
function - a
TLongFunction value
public boolean retainEntries(TFloatLongProcedureprocedure)
TFloatLongMap
retainEntries in interface
TFloatLongMap
procedure - determines which entries to keep
public boolean increment(float key)
TFloatLongMap
increment in interface
TFloatLongMap
key - the key of the value to increment
public boolean adjustValue(float key,
long amount)
TFloatLongMap
adjustValue in interface
TFloatLongMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public long adjustOrPutValue(float key,
long adjust_amount,
long put_amount)
TFloatLongMap
adjustOrPutValue in interface
TFloatLongMap
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()