public class TUnmodifiableShortFloatMap extends Objectimplements TShortFloatMap , Serializable
| Constructor and Description |
|---|
TUnmodifiableShortFloatMap(TShortFloatMap
|
| Modifier and Type | Method and Description |
|---|---|
float |
adjustOrPutValue(short 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(short key, float amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(short 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(TShortFloatProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TShortProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TFloatProcedure
Executes
procedure for each value in the map.
|
float |
get(short key)
Retrieves the value for
key
|
short |
getNoEntryKey()
Returns the value that will be returned from
TShortFloatMap or
TShortFloatMap if no entry exists for a given key.
|
float |
getNoEntryValue()
Returns the value that will be returned from
TShortFloatMap or
TShortFloatMap if no entry exists for a given key.
|
int |
hashCode()
|
boolean |
increment(short key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings.
|
TShortFloatIterator |
iterator()
|
short[] |
keys()
Returns the keys of the map as an array of
short values.
|
short[] |
keys(short[] array)
Returns the keys of the map.
|
TShortSet |
keySet()
Returns the keys of the map as a
TShortSet
|
float |
put(short 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(TShortFloatMap
Put all the entries from the given map into this map.
|
float |
putIfAbsent(short key, float value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
float |
remove(short key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TShortFloatProcedure
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 TUnmodifiableShortFloatMap(TShortFloatMapm)
public int size()
TShortFloatMap
size in interface
TShortFloatMap
public boolean isEmpty()
TShortFloatMap
isEmpty in interface
TShortFloatMap
public boolean containsKey(short key)
TShortFloatMap
containsKey in interface
TShortFloatMap
key - an
short value
boolean value
public boolean containsValue(float val)
TShortFloatMap
containsValue in interface
TShortFloatMap
val - an
float value
boolean value
public float get(short key)
TShortFloatMap
get in interface
TShortFloatMap
key - an
short value
TShortFloatMap.getNoEntryValue() ).
public float put(short key,
float value)
TShortFloatMap
put in interface
TShortFloatMap
key - an
short value
value - an
float value
TShortFloatMap.getNoEntryValue() ).
public float remove(short key)
TShortFloatMap
remove in interface
TShortFloatMap
key - an
short value
TShortFloatMap.getNoEntryValue() ).
public void putAll(TShortFloatMapm)
TShortFloatMap
putAll in interface
TShortFloatMap
m - The map from which entries will be obtained to put into this map.
public void putAll(Map<? extends Short ,? extends Float > map)
TShortFloatMap
putAll in interface
TShortFloatMap
map - The Map from which entries will be obtained to put into this map.
public void clear()
TShortFloatMap
public TShortSetkeySet()
TShortFloatMap
keySet in interface
TShortFloatMap
public short[] keys()
TShortFloatMap
keys in interface
TShortFloatMap
public short[] keys(short[] array)
TShortFloatMap
keys in interface
TShortFloatMap
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()
TShortFloatMap
valueCollection in interface
TShortFloatMap
public float[] values()
TShortFloatMap
values in interface
TShortFloatMap
public float[] values(float[] array)
TShortFloatMap
values in interface
TShortFloatMap
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 short getNoEntryKey()
TShortFloatMap
TShortFloatMap.get(short) or
TShortFloatMap.put(short, 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
TShortFloatMap
public float getNoEntryValue()
TShortFloatMap
TShortFloatMap.get(short) or
TShortFloatMap.put(short, 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
TShortFloatMap
public boolean forEachKey(TShortProcedureprocedure)
TShortFloatMap
forEachKey in interface
TShortFloatMap
procedure - a
TShortProcedure value
public boolean forEachValue(TFloatProcedureprocedure)
TShortFloatMap
forEachValue in interface
TShortFloatMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TShortFloatProcedureprocedure)
TShortFloatMap
forEachEntry in interface
TShortFloatMap
procedure - a
TOShortFloatProcedure value
public TShortFloatIteratoriterator()
iterator in interface
TShortFloatMap
public float putIfAbsent(short key,
float value)
TShortFloatMap
putIfAbsent in interface
TShortFloatMap
key - an
short value
value - an
float value
TShortFloatMap.getNoEntryValue() ).
public void transformValues(TFloatFunctionfunction)
TShortFloatMap
transformValues in interface
TShortFloatMap
function - a
TFloatFunction value
public boolean retainEntries(TShortFloatProcedureprocedure)
TShortFloatMap
retainEntries in interface
TShortFloatMap
procedure - determines which entries to keep
public boolean increment(short key)
TShortFloatMap
increment in interface
TShortFloatMap
key - the key of the value to increment
public boolean adjustValue(short key,
float amount)
TShortFloatMap
adjustValue in interface
TShortFloatMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public float adjustOrPutValue(short key,
float adjust_amount,
float put_amount)
TShortFloatMap
adjustOrPutValue in interface
TShortFloatMap
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