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