public class TSynchronizedCharShortMap extends Objectimplements TCharShortMap , Serializable
| Constructor and Description |
|---|
TSynchronizedCharShortMap(TCharShortMap
|
TSynchronizedCharShortMap(TCharShortMap
|
| Modifier and Type | Method and Description |
|---|---|
short |
adjustOrPutValue(char key, short adjust_amount, short put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(char key, short amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(char key)
Checks for the present of
key in the keys of the map.
|
boolean |
containsValue(short value)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TCharShortProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TCharProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TShortProcedure
Executes
procedure for each value in the map.
|
short |
get(char key)
Retrieves the value for
key
|
char |
getNoEntryKey()
Returns the value that will be returned from
TCharShortMap or
TCharShortMap if no entry exists for a given key.
|
short |
getNoEntryValue()
Returns the value that will be returned from
TCharShortMap or
TCharShortMap if no entry exists for a given key.
|
int |
hashCode()
|
boolean |
increment(char key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings.
|
TCharShortIterator |
iterator()
|
char[] |
keys()
Returns the keys of the map as an array of
char values.
|
char[] |
keys(char[] array)
Returns the keys of the map.
|
TCharSet |
keySet()
Returns the keys of the map as a
TCharSet
|
short |
put(char key, short 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(TCharShortMap
Put all the entries from the given map into this map.
|
short |
putIfAbsent(char key, short value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
short |
remove(char key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TCharShortProcedure
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(TShortFunction
Transform the values in this map using
function.
|
TShortCollection |
valueCollection()
Returns the values of the map as a
TShortCollection
|
short[] |
values()
Returns the values of the map as an array of
#e# values.
|
short[] |
values(short[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedCharShortMap(TCharShortMapm)
public TSynchronizedCharShortMap(TCharShortMapm, Object mutex)
public int size()
TCharShortMap
size in interface
TCharShortMap
public boolean isEmpty()
TCharShortMap
isEmpty in interface
TCharShortMap
public boolean containsKey(char key)
TCharShortMap
containsKey in interface
TCharShortMap
key - an
char value
boolean value
public boolean containsValue(short value)
TCharShortMap
containsValue in interface
TCharShortMap
value - an
short value
boolean value
public short get(char key)
TCharShortMap
get in interface
TCharShortMap
key - an
char value
TCharShortMap.getNoEntryValue() ).
public short put(char key,
short value)
TCharShortMap
put in interface
TCharShortMap
key - an
char value
value - an
short value
TCharShortMap.getNoEntryValue() ).
public short remove(char key)
TCharShortMap
remove in interface
TCharShortMap
key - an
char value
TCharShortMap.getNoEntryValue() ).
public void putAll(Map<? extends Character ,? extends Short > map)
TCharShortMap
putAll in interface
TCharShortMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TCharShortMapmap)
TCharShortMap
putAll in interface
TCharShortMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TCharShortMap
public TCharSetkeySet()
TCharShortMap
keySet in interface
TCharShortMap
public char[] keys()
TCharShortMap
keys in interface
TCharShortMap
public char[] keys(char[] array)
TCharShortMap
keys in interface
TCharShortMap
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 TShortCollectionvalueCollection()
TCharShortMap
valueCollection in interface
TCharShortMap
public short[] values()
TCharShortMap
values in interface
TCharShortMap
public short[] values(short[] array)
TCharShortMap
values in interface
TCharShortMap
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 TCharShortIteratoriterator()
iterator in interface
TCharShortMap
public char getNoEntryKey()
TCharShortMap
TCharShortMap.get(char) or
TCharShortMap.put(char, short) 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
TCharShortMap
public short getNoEntryValue()
TCharShortMap
TCharShortMap.get(char) or
TCharShortMap.put(char, short) 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
TCharShortMap
public short putIfAbsent(char key,
short value)
TCharShortMap
putIfAbsent in interface
TCharShortMap
key - an
char value
value - an
short value
TCharShortMap.getNoEntryValue() ).
public boolean forEachKey(TCharProcedureprocedure)
TCharShortMap
forEachKey in interface
TCharShortMap
procedure - a
TCharProcedure value
public boolean forEachValue(TShortProcedureprocedure)
TCharShortMap
forEachValue in interface
TCharShortMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TCharShortProcedureprocedure)
TCharShortMap
forEachEntry in interface
TCharShortMap
procedure - a
TOCharShortProcedure value
public void transformValues(TShortFunctionfunction)
TCharShortMap
transformValues in interface
TCharShortMap
function - a
TShortFunction value
public boolean retainEntries(TCharShortProcedureprocedure)
TCharShortMap
retainEntries in interface
TCharShortMap
procedure - determines which entries to keep
public boolean increment(char key)
TCharShortMap
increment in interface
TCharShortMap
key - the key of the value to increment
public boolean adjustValue(char key,
short amount)
TCharShortMap
adjustValue in interface
TCharShortMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public short adjustOrPutValue(char key,
short adjust_amount,
short put_amount)
TCharShortMap
adjustOrPutValue in interface
TCharShortMap
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()