public class TSynchronizedLongLongMap extends Objectimplements TLongLongMap , Serializable
| Constructor and Description |
|---|
TSynchronizedLongLongMap(TLongLongMap
|
TSynchronizedLongLongMap(TLongLongMap
|
| Modifier and Type | Method and Description |
|---|---|
long |
adjustOrPutValue(long 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(long key, long 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(long value)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TLongLongProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TLongProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TLongProcedure
Executes
procedure for each value in the map.
|
long |
get(long key)
Retrieves the value for
key
|
long |
getNoEntryKey()
Returns the value that will be returned from
TLongLongMap or
TLongLongMap if no entry exists for a given key.
|
long |
getNoEntryValue()
Returns the value that will be returned from
TLongLongMap or
TLongLongMap 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.
|
TLongLongIterator |
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
|
long |
put(long 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(TLongLongMap
Put all the entries from the given map into this map.
|
long |
putIfAbsent(long key, long value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
long |
remove(long key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TLongLongProcedure
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 TSynchronizedLongLongMap(TLongLongMapm)
public TSynchronizedLongLongMap(TLongLongMapm, Object mutex)
public int size()
TLongLongMap
size in interface
TLongLongMap
public boolean isEmpty()
TLongLongMap
isEmpty in interface
TLongLongMap
public boolean containsKey(long key)
TLongLongMap
containsKey in interface
TLongLongMap
key - an
long value
boolean value
public boolean containsValue(long value)
TLongLongMap
containsValue in interface
TLongLongMap
value - an
long value
boolean value
public long get(long key)
TLongLongMap
get in interface
TLongLongMap
key - an
long value
TLongLongMap.getNoEntryValue() ).
public long put(long key,
long value)
TLongLongMap
put in interface
TLongLongMap
key - an
long value
value - an
long value
TLongLongMap.getNoEntryValue() ).
public long remove(long key)
TLongLongMap
remove in interface
TLongLongMap
key - an
long value
TLongLongMap.getNoEntryValue() ).
public void putAll(Map<? extends Long ,? extends Long > map)
TLongLongMap
putAll in interface
TLongLongMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TLongLongMapmap)
TLongLongMap
putAll in interface
TLongLongMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TLongLongMap
public TLongSetkeySet()
TLongLongMap
keySet in interface
TLongLongMap
public long[] keys()
TLongLongMap
keys in interface
TLongLongMap
public long[] keys(long[] array)
TLongLongMap
keys in interface
TLongLongMap
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()
TLongLongMap
valueCollection in interface
TLongLongMap
public long[] values()
TLongLongMap
values in interface
TLongLongMap
public long[] values(long[] array)
TLongLongMap
values in interface
TLongLongMap
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 TLongLongIteratoriterator()
iterator in interface
TLongLongMap
public long getNoEntryKey()
TLongLongMap
TLongLongMap.get(long) or
TLongLongMap.put(long, 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
TLongLongMap
public long getNoEntryValue()
TLongLongMap
TLongLongMap.get(long) or
TLongLongMap.put(long, 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
TLongLongMap
public long putIfAbsent(long key,
long value)
TLongLongMap
putIfAbsent in interface
TLongLongMap
key - an
long value
value - an
long value
TLongLongMap.getNoEntryValue() ).
public boolean forEachKey(TLongProcedureprocedure)
TLongLongMap
forEachKey in interface
TLongLongMap
procedure - a
TLongProcedure value
public boolean forEachValue(TLongProcedureprocedure)
TLongLongMap
forEachValue in interface
TLongLongMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TLongLongProcedureprocedure)
TLongLongMap
forEachEntry in interface
TLongLongMap
procedure - a
TOLongLongProcedure value
public void transformValues(TLongFunctionfunction)
TLongLongMap
transformValues in interface
TLongLongMap
function - a
TLongFunction value
public boolean retainEntries(TLongLongProcedureprocedure)
TLongLongMap
retainEntries in interface
TLongLongMap
procedure - determines which entries to keep
public boolean increment(long key)
TLongLongMap
increment in interface
TLongLongMap
key - the key of the value to increment
public boolean adjustValue(long key,
long amount)
TLongLongMap
adjustValue in interface
TLongLongMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public long adjustOrPutValue(long key,
long adjust_amount,
long put_amount)
TLongLongMap
adjustOrPutValue in interface
TLongLongMap
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()