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