public class TSynchronizedByteShortMap extends Objectimplements TByteShortMap , Serializable
| Constructor and Description |
|---|
TSynchronizedByteShortMap(TByteShortMap
|
TSynchronizedByteShortMap(TByteShortMap
|
| Modifier and Type | Method and Description |
|---|---|
short |
adjustOrPutValue(byte 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(byte key, short amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(byte 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(TByteShortProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TByteProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TShortProcedure
Executes
procedure for each value in the map.
|
short |
get(byte key)
Retrieves the value for
key
|
byte |
getNoEntryKey()
Returns the value that will be returned from
TByteShortMap or
TByteShortMap if no entry exists for a given key.
|
short |
getNoEntryValue()
Returns the value that will be returned from
TByteShortMap or
TByteShortMap if no entry exists for a given key.
|
int |
hashCode()
|
boolean |
increment(byte key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings.
|
TByteShortIterator |
iterator()
|
byte[] |
keys()
Returns the keys of the map as an array of
byte values.
|
byte[] |
keys(byte[] array)
Returns the keys of the map.
|
TByteSet |
keySet()
Returns the keys of the map as a
TByteSet
|
short |
put(byte 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(TByteShortMap
Put all the entries from the given map into this map.
|
short |
putIfAbsent(byte key, short value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
short |
remove(byte key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TByteShortProcedure
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 TSynchronizedByteShortMap(TByteShortMapm)
public TSynchronizedByteShortMap(TByteShortMapm, Object mutex)
public int size()
TByteShortMap
size in interface
TByteShortMap
public boolean isEmpty()
TByteShortMap
isEmpty in interface
TByteShortMap
public boolean containsKey(byte key)
TByteShortMap
containsKey in interface
TByteShortMap
key - an
byte value
boolean value
public boolean containsValue(short value)
TByteShortMap
containsValue in interface
TByteShortMap
value - an
short value
boolean value
public short get(byte key)
TByteShortMap
get in interface
TByteShortMap
key - an
byte value
TByteShortMap.getNoEntryValue() ).
public short put(byte key,
short value)
TByteShortMap
put in interface
TByteShortMap
key - an
byte value
value - an
short value
TByteShortMap.getNoEntryValue() ).
public short remove(byte key)
TByteShortMap
remove in interface
TByteShortMap
key - an
byte value
TByteShortMap.getNoEntryValue() ).
public void putAll(Map<? extends Byte ,? extends Short > map)
TByteShortMap
putAll in interface
TByteShortMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TByteShortMapmap)
TByteShortMap
putAll in interface
TByteShortMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TByteShortMap
public TByteSetkeySet()
TByteShortMap
keySet in interface
TByteShortMap
public byte[] keys()
TByteShortMap
keys in interface
TByteShortMap
public byte[] keys(byte[] array)
TByteShortMap
keys in interface
TByteShortMap
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()
TByteShortMap
valueCollection in interface
TByteShortMap
public short[] values()
TByteShortMap
values in interface
TByteShortMap
public short[] values(short[] array)
TByteShortMap
values in interface
TByteShortMap
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 TByteShortIteratoriterator()
iterator in interface
TByteShortMap
public byte getNoEntryKey()
TByteShortMap
TByteShortMap.get(byte) or
TByteShortMap.put(byte, 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
TByteShortMap
public short getNoEntryValue()
TByteShortMap
TByteShortMap.get(byte) or
TByteShortMap.put(byte, 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
TByteShortMap
public short putIfAbsent(byte key,
short value)
TByteShortMap
putIfAbsent in interface
TByteShortMap
key - an
byte value
value - an
short value
TByteShortMap.getNoEntryValue() ).
public boolean forEachKey(TByteProcedureprocedure)
TByteShortMap
forEachKey in interface
TByteShortMap
procedure - a
TByteProcedure value
public boolean forEachValue(TShortProcedureprocedure)
TByteShortMap
forEachValue in interface
TByteShortMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TByteShortProcedureprocedure)
TByteShortMap
forEachEntry in interface
TByteShortMap
procedure - a
TOByteShortProcedure value
public void transformValues(TShortFunctionfunction)
TByteShortMap
transformValues in interface
TByteShortMap
function - a
TShortFunction value
public boolean retainEntries(TByteShortProcedureprocedure)
TByteShortMap
retainEntries in interface
TByteShortMap
procedure - determines which entries to keep
public boolean increment(byte key)
TByteShortMap
increment in interface
TByteShortMap
key - the key of the value to increment
public boolean adjustValue(byte key,
short amount)
TByteShortMap
adjustValue in interface
TByteShortMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public short adjustOrPutValue(byte key,
short adjust_amount,
short put_amount)
TByteShortMap
adjustOrPutValue in interface
TByteShortMap
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()