public class TUnmodifiableByteFloatMap extends java.lang.Object implements TByteFloatMap, java.io.Serializable
| Constructor and Description |
|---|
TUnmodifiableByteFloatMap(TByteFloatMap m) |
| 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(java.lang.Object o) |
boolean |
forEachEntry(TByteFloatProcedure procedure)
Executes procedure for each key/value entry in the
map.
|
boolean |
forEachKey(TByteProcedure procedure)
Executes procedure for each key in the map.
|
boolean |
forEachValue(TFloatProcedure procedure)
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.get(byte) or TByteFloatMap.put(byte, float) if no
entry exists for a given key. |
float |
getNoEntryValue()
Returns the value that will be returned from
TByteFloatMap.get(byte) or TByteFloatMap.put(byte, float) 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(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map)
Put all the entries from the given Map into this map.
|
void |
putAll(TByteFloatMap m)
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 procedure)
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.
|
java.lang.String |
toString() |
void |
transformValues(TFloatFunction function)
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(TByteFloatMap m)
public int size()
TByteFloatMapsize in interface TByteFloatMappublic boolean isEmpty()
TByteFloatMapisEmpty in interface TByteFloatMappublic boolean containsKey(byte key)
TByteFloatMapcontainsKey in interface TByteFloatMappublic boolean containsValue(float val)
TByteFloatMapcontainsValue in interface TByteFloatMappublic float get(byte key)
TByteFloatMapget in interface TByteFloatMapTByteFloatMap.getNoEntryValue()).public float put(byte key,
float value)
TByteFloatMapput in interface TByteFloatMapTByteFloatMap.getNoEntryValue()).public float remove(byte key)
TByteFloatMapremove in interface TByteFloatMapkey - an byte valueTByteFloatMap.getNoEntryValue()).public void putAll(TByteFloatMap m)
TByteFloatMapputAll in interface TByteFloatMapm - The map from which entries will be obtained to put into this map.public void putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map)
TByteFloatMapputAll in interface TByteFloatMapmap - The Map from which entries will be obtained to put into this map.public void clear()
TByteFloatMapclear in interface TByteFloatMappublic TByteSet keySet()
TByteFloatMapkeySet in interface TByteFloatMappublic byte[] keys()
TByteFloatMapkeys in interface TByteFloatMappublic byte[] keys(byte[] array)
TByteFloatMapkeys in interface TByteFloatMaparray - 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 TFloatCollection valueCollection()
TByteFloatMapvalueCollection in interface TByteFloatMappublic float[] values()
TByteFloatMapvalues in interface TByteFloatMappublic float[] values(float[] array)
TByteFloatMapvalues in interface TByteFloatMaparray - 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(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic byte getNoEntryKey()
TByteFloatMapTByteFloatMap.get(byte) or TByteFloatMap.put(byte, float) if no
entry exists for a given key. The default value is generally zero, but can be
configured during construction of the collection.getNoEntryKey in interface TByteFloatMappublic float getNoEntryValue()
TByteFloatMapTByteFloatMap.get(byte) or TByteFloatMap.put(byte, float) if no
entry exists for a given key. The default value is generally zero, but can be
configured during construction of the collection.getNoEntryValue in interface TByteFloatMappublic boolean forEachKey(TByteProcedure procedure)
TByteFloatMapforEachKey in interface TByteFloatMapprocedure - a TByteProcedure valuepublic boolean forEachValue(TFloatProcedure procedure)
TByteFloatMapforEachValue in interface TByteFloatMapprocedure - a T#F#Procedure valuepublic boolean forEachEntry(TByteFloatProcedure procedure)
TByteFloatMapforEachEntry in interface TByteFloatMapprocedure - a TOByteFloatProcedure valuepublic TByteFloatIterator iterator()
iterator in interface TByteFloatMappublic float putIfAbsent(byte key,
float value)
TByteFloatMapputIfAbsent in interface TByteFloatMapTByteFloatMap.getNoEntryValue()).public void transformValues(TFloatFunction function)
TByteFloatMaptransformValues in interface TByteFloatMapfunction - a TFloatFunction valuepublic boolean retainEntries(TByteFloatProcedure procedure)
TByteFloatMapretainEntries in interface TByteFloatMapprocedure - determines which entries to keeppublic boolean increment(byte key)
TByteFloatMapincrement in interface TByteFloatMapkey - the key of the value to incrementpublic boolean adjustValue(byte key,
float amount)
TByteFloatMapadjustValue in interface TByteFloatMapkey - the key of the value to incrementamount - the amount to adjust the value by.public float adjustOrPutValue(byte key,
float adjust_amount,
float put_amount)
TByteFloatMapadjustOrPutValue in interface TByteFloatMapkey - the key of the value to incrementadjust_amount - the amount to adjust the value byput_amount - the value put into the map if the key is not present