public class TUnmodifiableFloatByteMap extends java.lang.Object implements TFloatByteMap, java.io.Serializable
| Constructor and Description |
|---|
TUnmodifiableFloatByteMap(TFloatByteMap m) |
| Modifier and Type | Method and Description |
|---|---|
byte |
adjustOrPutValue(float 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(float key,
byte amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(float key)
Checks for the present of key in the keys of the map.
|
boolean |
containsValue(byte val)
Checks for the presence of val in the values of the map.
|
boolean |
equals(java.lang.Object o) |
boolean |
forEachEntry(TFloatByteProcedure procedure)
Executes procedure for each key/value entry in the
map.
|
boolean |
forEachKey(TFloatProcedure procedure)
Executes procedure for each key in the map.
|
boolean |
forEachValue(TByteProcedure procedure)
Executes procedure for each value in the map.
|
byte |
get(float key)
Retrieves the value for key.
|
float |
getNoEntryKey()
Returns the value that will be returned from
TFloatByteMap.get(float) or TFloatByteMap.put(float, byte) if no
entry exists for a given key. |
byte |
getNoEntryValue()
Returns the value that will be returned from
TFloatByteMap.get(float) or TFloatByteMap.put(float, byte) if no
entry exists for a given key. |
int |
hashCode() |
boolean |
increment(float key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
TFloatByteIterator |
iterator() |
float[] |
keys()
Returns the keys of the map as an array of float values.
|
float[] |
keys(float[] array)
Returns the keys of the map.
|
TFloatSet |
keySet()
Returns the keys of the map as a TFloatSet
|
byte |
put(float key,
byte value)
Inserts a key/value pair into the map.
|
void |
putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> map)
Put all the entries from the given Map into this map.
|
void |
putAll(TFloatByteMap m)
Put all the entries from the given map into this map.
|
byte |
putIfAbsent(float key,
byte value)
Inserts a key/value pair into the map if the specified key is not already
associated with a value.
|
byte |
remove(float key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TFloatByteProcedure 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(TByteFunction function)
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 TUnmodifiableFloatByteMap(TFloatByteMap m)
public int size()
TFloatByteMapsize in interface TFloatByteMappublic boolean isEmpty()
TFloatByteMapisEmpty in interface TFloatByteMappublic boolean containsKey(float key)
TFloatByteMapcontainsKey in interface TFloatByteMappublic boolean containsValue(byte val)
TFloatByteMapcontainsValue in interface TFloatByteMappublic byte get(float key)
TFloatByteMapget in interface TFloatByteMapTFloatByteMap.getNoEntryValue()).public byte put(float key,
byte value)
TFloatByteMapput in interface TFloatByteMapTFloatByteMap.getNoEntryValue()).public byte remove(float key)
TFloatByteMapremove in interface TFloatByteMapkey - an float valueTFloatByteMap.getNoEntryValue()).public void putAll(TFloatByteMap m)
TFloatByteMapputAll in interface TFloatByteMapm - The map from which entries will be obtained to put into this map.public void putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> map)
TFloatByteMapputAll in interface TFloatByteMapmap - The Map from which entries will be obtained to put into this map.public void clear()
TFloatByteMapclear in interface TFloatByteMappublic TFloatSet keySet()
TFloatByteMapkeySet in interface TFloatByteMappublic float[] keys()
TFloatByteMapkeys in interface TFloatByteMappublic float[] keys(float[] array)
TFloatByteMapkeys in interface TFloatByteMaparray - 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 TByteCollection valueCollection()
TFloatByteMapvalueCollection in interface TFloatByteMappublic byte[] values()
TFloatByteMapvalues in interface TFloatByteMappublic byte[] values(byte[] array)
TFloatByteMapvalues in interface TFloatByteMaparray - 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 float getNoEntryKey()
TFloatByteMapTFloatByteMap.get(float) or TFloatByteMap.put(float, byte) 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 TFloatByteMappublic byte getNoEntryValue()
TFloatByteMapTFloatByteMap.get(float) or TFloatByteMap.put(float, byte) 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 TFloatByteMappublic boolean forEachKey(TFloatProcedure procedure)
TFloatByteMapforEachKey in interface TFloatByteMapprocedure - a TFloatProcedure valuepublic boolean forEachValue(TByteProcedure procedure)
TFloatByteMapforEachValue in interface TFloatByteMapprocedure - a T#F#Procedure valuepublic boolean forEachEntry(TFloatByteProcedure procedure)
TFloatByteMapforEachEntry in interface TFloatByteMapprocedure - a TOFloatByteProcedure valuepublic TFloatByteIterator iterator()
iterator in interface TFloatByteMappublic byte putIfAbsent(float key,
byte value)
TFloatByteMapputIfAbsent in interface TFloatByteMapTFloatByteMap.getNoEntryValue()).public void transformValues(TByteFunction function)
TFloatByteMaptransformValues in interface TFloatByteMapfunction - a TByteFunction valuepublic boolean retainEntries(TFloatByteProcedure procedure)
TFloatByteMapretainEntries in interface TFloatByteMapprocedure - determines which entries to keeppublic boolean increment(float key)
TFloatByteMapincrement in interface TFloatByteMapkey - the key of the value to incrementpublic boolean adjustValue(float key,
byte amount)
TFloatByteMapadjustValue in interface TFloatByteMapkey - the key of the value to incrementamount - the amount to adjust the value by.public byte adjustOrPutValue(float key,
byte adjust_amount,
byte put_amount)
TFloatByteMapadjustOrPutValue in interface TFloatByteMapkey - 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