public class TUnmodifiableByteCharMap extends Objectimplements TByteCharMap , Serializable
| Constructor and Description |
|---|
TUnmodifiableByteCharMap(TByteCharMap
|
| Modifier and Type | Method and Description |
|---|---|
char |
adjustOrPutValue(byte 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(byte key, char 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(char val)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TByteCharProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TByteProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TCharProcedure
Executes
procedure for each value in the map.
|
char |
get(byte key)
Retrieves the value for
key
|
byte |
getNoEntryKey()
Returns the value that will be returned from
TByteCharMap or
TByteCharMap if no entry exists for a given key.
|
char |
getNoEntryValue()
Returns the value that will be returned from
TByteCharMap or
TByteCharMap 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.
|
TByteCharIterator |
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
|
char |
put(byte 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(TByteCharMap
Put all the entries from the given map into this map.
|
char |
putIfAbsent(byte key, char value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
char |
remove(byte key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TByteCharProcedure
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 TUnmodifiableByteCharMap(TByteCharMapm)
public int size()
TByteCharMap
size in interface
TByteCharMap
public boolean isEmpty()
TByteCharMap
isEmpty in interface
TByteCharMap
public boolean containsKey(byte key)
TByteCharMap
containsKey in interface
TByteCharMap
key - an
byte value
boolean value
public boolean containsValue(char val)
TByteCharMap
containsValue in interface
TByteCharMap
val - an
char value
boolean value
public char get(byte key)
TByteCharMap
get in interface
TByteCharMap
key - an
byte value
TByteCharMap.getNoEntryValue() ).
public char put(byte key,
char value)
TByteCharMap
put in interface
TByteCharMap
key - an
byte value
value - an
char value
TByteCharMap.getNoEntryValue() ).
public char remove(byte key)
TByteCharMap
remove in interface
TByteCharMap
key - an
byte value
TByteCharMap.getNoEntryValue() ).
public void putAll(TByteCharMapm)
TByteCharMap
putAll in interface
TByteCharMap
m - The map from which entries will be obtained to put into this map.
public void putAll(Map<? extends Byte ,? extends Character > map)
TByteCharMap
putAll in interface
TByteCharMap
map - The Map from which entries will be obtained to put into this map.
public void clear()
TByteCharMap
public TByteSetkeySet()
TByteCharMap
keySet in interface
TByteCharMap
public byte[] keys()
TByteCharMap
keys in interface
TByteCharMap
public byte[] keys(byte[] array)
TByteCharMap
keys in interface
TByteCharMap
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()
TByteCharMap
valueCollection in interface
TByteCharMap
public char[] values()
TByteCharMap
values in interface
TByteCharMap
public char[] values(char[] array)
TByteCharMap
values in interface
TByteCharMap
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 boolean equals(Objecto)
public int hashCode()
public StringtoString()
public byte getNoEntryKey()
TByteCharMap
TByteCharMap.get(byte) or
TByteCharMap.put(byte, 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
TByteCharMap
public char getNoEntryValue()
TByteCharMap
TByteCharMap.get(byte) or
TByteCharMap.put(byte, 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
TByteCharMap
public boolean forEachKey(TByteProcedureprocedure)
TByteCharMap
forEachKey in interface
TByteCharMap
procedure - a
TByteProcedure value
public boolean forEachValue(TCharProcedureprocedure)
TByteCharMap
forEachValue in interface
TByteCharMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TByteCharProcedureprocedure)
TByteCharMap
forEachEntry in interface
TByteCharMap
procedure - a
TOByteCharProcedure value
public TByteCharIteratoriterator()
iterator in interface
TByteCharMap
public char putIfAbsent(byte key,
char value)
TByteCharMap
putIfAbsent in interface
TByteCharMap
key - an
byte value
value - an
char value
TByteCharMap.getNoEntryValue() ).
public void transformValues(TCharFunctionfunction)
TByteCharMap
transformValues in interface
TByteCharMap
function - a
TCharFunction value
public boolean retainEntries(TByteCharProcedureprocedure)
TByteCharMap
retainEntries in interface
TByteCharMap
procedure - determines which entries to keep
public boolean increment(byte key)
TByteCharMap
increment in interface
TByteCharMap
key - the key of the value to increment
public boolean adjustValue(byte key,
char amount)
TByteCharMap
adjustValue in interface
TByteCharMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public char adjustOrPutValue(byte key,
char adjust_amount,
char put_amount)
TByteCharMap
adjustOrPutValue in interface
TByteCharMap
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