public class TSynchronizedByteByteMap extends Objectimplements TByteByteMap , Serializable
| Constructor and Description |
|---|
TSynchronizedByteByteMap(TByteByteMap
|
TSynchronizedByteByteMap(TByteByteMap
|
| Modifier and Type | Method and Description |
|---|---|
byte |
adjustOrPutValue(byte key, byte adjust_amount, byte put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(byte key, byte 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(byte value)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TByteByteProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TByteProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TByteProcedure
Executes
procedure for each value in the map.
|
byte |
get(byte key)
Retrieves the value for
key
|
byte |
getNoEntryKey()
Returns the value that will be returned from
TByteByteMap or
TByteByteMap if no entry exists for a given key.
|
byte |
getNoEntryValue()
Returns the value that will be returned from
TByteByteMap or
TByteByteMap 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.
|
TByteByteIterator |
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
|
byte |
put(byte key, byte 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(TByteByteMap
Put all the entries from the given map into this map.
|
byte |
putIfAbsent(byte key, byte value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
byte |
remove(byte key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TByteByteProcedure
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(TByteFunction
Transform the values in this map using
function.
|
TByteCollection |
valueCollection()
Returns the values of the map as a
TByteCollection
|
byte[] |
values()
Returns the values of the map as an array of
#e# values.
|
byte[] |
values(byte[] array)
Returns the values of the map using an existing array.
|
public TSynchronizedByteByteMap(TByteByteMapm)
public TSynchronizedByteByteMap(TByteByteMapm, Object mutex)
public int size()
TByteByteMap
size in interface
TByteByteMap
public boolean isEmpty()
TByteByteMap
isEmpty in interface
TByteByteMap
public boolean containsKey(byte key)
TByteByteMap
containsKey in interface
TByteByteMap
key - an
byte value
boolean value
public boolean containsValue(byte value)
TByteByteMap
containsValue in interface
TByteByteMap
value - an
byte value
boolean value
public byte get(byte key)
TByteByteMap
get in interface
TByteByteMap
key - an
byte value
TByteByteMap.getNoEntryValue() ).
public byte put(byte key,
byte value)
TByteByteMap
put in interface
TByteByteMap
key - an
byte value
value - an
byte value
TByteByteMap.getNoEntryValue() ).
public byte remove(byte key)
TByteByteMap
remove in interface
TByteByteMap
key - an
byte value
TByteByteMap.getNoEntryValue() ).
public void putAll(Map<? extends Byte ,? extends Byte > map)
TByteByteMap
putAll in interface
TByteByteMap
map - The Map from which entries will be obtained to put into this map.
public void putAll(TByteByteMapmap)
TByteByteMap
putAll in interface
TByteByteMap
map - The map from which entries will be obtained to put into this map.
public void clear()
TByteByteMap
public TByteSetkeySet()
TByteByteMap
keySet in interface
TByteByteMap
public byte[] keys()
TByteByteMap
keys in interface
TByteByteMap
public byte[] keys(byte[] array)
TByteByteMap
keys in interface
TByteByteMap
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 TByteCollectionvalueCollection()
TByteByteMap
valueCollection in interface
TByteByteMap
public byte[] values()
TByteByteMap
values in interface
TByteByteMap
public byte[] values(byte[] array)
TByteByteMap
values in interface
TByteByteMap
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 TByteByteIteratoriterator()
iterator in interface
TByteByteMap
public byte getNoEntryKey()
TByteByteMap
TByteByteMap.get(byte) or
TByteByteMap.put(byte, byte) 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
TByteByteMap
public byte getNoEntryValue()
TByteByteMap
TByteByteMap.get(byte) or
TByteByteMap.put(byte, byte) 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
TByteByteMap
public byte putIfAbsent(byte key,
byte value)
TByteByteMap
putIfAbsent in interface
TByteByteMap
key - an
byte value
value - an
byte value
TByteByteMap.getNoEntryValue() ).
public boolean forEachKey(TByteProcedureprocedure)
TByteByteMap
forEachKey in interface
TByteByteMap
procedure - a
TByteProcedure value
public boolean forEachValue(TByteProcedureprocedure)
TByteByteMap
forEachValue in interface
TByteByteMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TByteByteProcedureprocedure)
TByteByteMap
forEachEntry in interface
TByteByteMap
procedure - a
TOByteByteProcedure value
public void transformValues(TByteFunctionfunction)
TByteByteMap
transformValues in interface
TByteByteMap
function - a
TByteFunction value
public boolean retainEntries(TByteByteProcedureprocedure)
TByteByteMap
retainEntries in interface
TByteByteMap
procedure - determines which entries to keep
public boolean increment(byte key)
TByteByteMap
increment in interface
TByteByteMap
key - the key of the value to increment
public boolean adjustValue(byte key,
byte amount)
TByteByteMap
adjustValue in interface
TByteByteMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public byte adjustOrPutValue(byte key,
byte adjust_amount,
byte put_amount)
TByteByteMap
adjustOrPutValue in interface
TByteByteMap
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()