public class TUnmodifiableDoubleShortMap extends Objectimplements TDoubleShortMap , Serializable
| Constructor and Description |
|---|
TUnmodifiableDoubleShortMap(TDoubleShortMap
|
| Modifier and Type | Method and Description |
|---|---|
short |
adjustOrPutValue(double key, short adjust_amount, short put_amount)
Adjusts the primitive value mapped to the key if the key is present in the map.
|
boolean |
adjustValue(double key, short amount)
Adjusts the primitive value mapped to key.
|
void |
clear()
Empties the map.
|
boolean |
containsKey(double key)
Checks for the present of
key in the keys of the map.
|
boolean |
containsValue(short val)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TDoubleShortProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TDoubleProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TShortProcedure
Executes
procedure for each value in the map.
|
short |
get(double key)
Retrieves the value for
key
|
double |
getNoEntryKey()
Returns the value that will be returned from
TDoubleShortMap or
TDoubleShortMap if no entry exists for a given key.
|
short |
getNoEntryValue()
Returns the value that will be returned from
TDoubleShortMap or
TDoubleShortMap if no entry exists for a given key.
|
int |
hashCode()
|
boolean |
increment(double key)
Increments the primitive value mapped to key by 1
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings.
|
TDoubleShortIterator |
iterator()
|
double[] |
keys()
Returns the keys of the map as an array of
double values.
|
double[] |
keys(double[] array)
Returns the keys of the map.
|
TDoubleSet |
keySet()
Returns the keys of the map as a
TDoubleSet
|
short |
put(double key, short 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(TDoubleShortMap
Put all the entries from the given map into this map.
|
short |
putIfAbsent(double key, short value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
short |
remove(double key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TDoubleShortProcedure
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(TShortFunction
Transform the values in this map using
function.
|
TShortCollection |
valueCollection()
Returns the values of the map as a
TShortCollection
|
short[] |
values()
Returns the values of the map as an array of
#e# values.
|
short[] |
values(short[] array)
Returns the values of the map using an existing array.
|
public TUnmodifiableDoubleShortMap(TDoubleShortMapm)
public int size()
TDoubleShortMap
size in interface
TDoubleShortMap
public boolean isEmpty()
TDoubleShortMap
isEmpty in interface
TDoubleShortMap
public boolean containsKey(double key)
TDoubleShortMap
containsKey in interface
TDoubleShortMap
key - an
double value
boolean value
public boolean containsValue(short val)
TDoubleShortMap
containsValue in interface
TDoubleShortMap
val - an
short value
boolean value
public short get(double key)
TDoubleShortMap
get in interface
TDoubleShortMap
key - an
double value
TDoubleShortMap.getNoEntryValue() ).
public short put(double key,
short value)
TDoubleShortMap
put in interface
TDoubleShortMap
key - an
double value
value - an
short value
TDoubleShortMap.getNoEntryValue() ).
public short remove(double key)
TDoubleShortMap
remove in interface
TDoubleShortMap
key - an
double value
TDoubleShortMap.getNoEntryValue() ).
public void putAll(TDoubleShortMapm)
TDoubleShortMap
putAll in interface
TDoubleShortMap
m - The map from which entries will be obtained to put into this map.
public void putAll(Map<? extends Double ,? extends Short > map)
TDoubleShortMap
putAll in interface
TDoubleShortMap
map - The Map from which entries will be obtained to put into this map.
public void clear()
TDoubleShortMap
public TDoubleSetkeySet()
TDoubleShortMap
keySet in interface
TDoubleShortMap
public double[] keys()
TDoubleShortMap
keys in interface
TDoubleShortMap
public double[] keys(double[] array)
TDoubleShortMap
keys in interface
TDoubleShortMap
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 TShortCollectionvalueCollection()
TDoubleShortMap
valueCollection in interface
TDoubleShortMap
public short[] values()
TDoubleShortMap
values in interface
TDoubleShortMap
public short[] values(short[] array)
TDoubleShortMap
values in interface
TDoubleShortMap
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 double getNoEntryKey()
TDoubleShortMap
TDoubleShortMap.get(double) or
TDoubleShortMap.put(double, short) 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
TDoubleShortMap
public short getNoEntryValue()
TDoubleShortMap
TDoubleShortMap.get(double) or
TDoubleShortMap.put(double, short) 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
TDoubleShortMap
public boolean forEachKey(TDoubleProcedureprocedure)
TDoubleShortMap
forEachKey in interface
TDoubleShortMap
procedure - a
TDoubleProcedure value
public boolean forEachValue(TShortProcedureprocedure)
TDoubleShortMap
forEachValue in interface
TDoubleShortMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TDoubleShortProcedureprocedure)
TDoubleShortMap
forEachEntry in interface
TDoubleShortMap
procedure - a
TODoubleShortProcedure value
public TDoubleShortIteratoriterator()
iterator in interface
TDoubleShortMap
public short putIfAbsent(double key,
short value)
TDoubleShortMap
putIfAbsent in interface
TDoubleShortMap
key - an
double value
value - an
short value
TDoubleShortMap.getNoEntryValue() ).
public void transformValues(TShortFunctionfunction)
TDoubleShortMap
transformValues in interface
TDoubleShortMap
function - a
TShortFunction value
public boolean retainEntries(TDoubleShortProcedureprocedure)
TDoubleShortMap
retainEntries in interface
TDoubleShortMap
procedure - determines which entries to keep
public boolean increment(double key)
TDoubleShortMap
increment in interface
TDoubleShortMap
key - the key of the value to increment
public boolean adjustValue(double key,
short amount)
TDoubleShortMap
adjustValue in interface
TDoubleShortMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public short adjustOrPutValue(double key,
short adjust_amount,
short put_amount)
TDoubleShortMap
adjustOrPutValue in interface
TDoubleShortMap
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