public class TUnmodifiableShortShortMap extends Objectimplements TShortShortMap , Serializable
| Constructor and Description |
|---|
TUnmodifiableShortShortMap(TShortShortMap
|
| Modifier and Type | Method and Description |
|---|---|
short |
adjustOrPutValue(short 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(short key, short 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(short val)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TShortShortProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TShortProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TShortProcedure
Executes
procedure for each value in the map.
|
short |
get(short key)
Retrieves the value for
key
|
short |
getNoEntryKey()
Returns the value that will be returned from
TShortShortMap or
TShortShortMap if no entry exists for a given key.
|
short |
getNoEntryValue()
Returns the value that will be returned from
TShortShortMap or
TShortShortMap 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.
|
TShortShortIterator |
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
|
short |
put(short 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(TShortShortMap
Put all the entries from the given map into this map.
|
short |
putIfAbsent(short key, short value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
short |
remove(short key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TShortShortProcedure
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 TUnmodifiableShortShortMap(TShortShortMapm)
public int size()
TShortShortMap
size in interface
TShortShortMap
public boolean isEmpty()
TShortShortMap
isEmpty in interface
TShortShortMap
public boolean containsKey(short key)
TShortShortMap
containsKey in interface
TShortShortMap
key - an
short value
boolean value
public boolean containsValue(short val)
TShortShortMap
containsValue in interface
TShortShortMap
val - an
short value
boolean value
public short get(short key)
TShortShortMap
get in interface
TShortShortMap
key - an
short value
TShortShortMap.getNoEntryValue() ).
public short put(short key,
short value)
TShortShortMap
put in interface
TShortShortMap
key - an
short value
value - an
short value
TShortShortMap.getNoEntryValue() ).
public short remove(short key)
TShortShortMap
remove in interface
TShortShortMap
key - an
short value
TShortShortMap.getNoEntryValue() ).
public void putAll(TShortShortMapm)
TShortShortMap
putAll in interface
TShortShortMap
m - The map from which entries will be obtained to put into this map.
public void putAll(Map<? extends Short ,? extends Short > map)
TShortShortMap
putAll in interface
TShortShortMap
map - The Map from which entries will be obtained to put into this map.
public void clear()
TShortShortMap
public TShortSetkeySet()
TShortShortMap
keySet in interface
TShortShortMap
public short[] keys()
TShortShortMap
keys in interface
TShortShortMap
public short[] keys(short[] array)
TShortShortMap
keys in interface
TShortShortMap
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()
TShortShortMap
valueCollection in interface
TShortShortMap
public short[] values()
TShortShortMap
values in interface
TShortShortMap
public short[] values(short[] array)
TShortShortMap
values in interface
TShortShortMap
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()
TShortShortMap
TShortShortMap.get(short) or
TShortShortMap.put(short, 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
TShortShortMap
public short getNoEntryValue()
TShortShortMap
TShortShortMap.get(short) or
TShortShortMap.put(short, 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
TShortShortMap
public boolean forEachKey(TShortProcedureprocedure)
TShortShortMap
forEachKey in interface
TShortShortMap
procedure - a
TShortProcedure value
public boolean forEachValue(TShortProcedureprocedure)
TShortShortMap
forEachValue in interface
TShortShortMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TShortShortProcedureprocedure)
TShortShortMap
forEachEntry in interface
TShortShortMap
procedure - a
TOShortShortProcedure value
public TShortShortIteratoriterator()
iterator in interface
TShortShortMap
public short putIfAbsent(short key,
short value)
TShortShortMap
putIfAbsent in interface
TShortShortMap
key - an
short value
value - an
short value
TShortShortMap.getNoEntryValue() ).
public void transformValues(TShortFunctionfunction)
TShortShortMap
transformValues in interface
TShortShortMap
function - a
TShortFunction value
public boolean retainEntries(TShortShortProcedureprocedure)
TShortShortMap
retainEntries in interface
TShortShortMap
procedure - determines which entries to keep
public boolean increment(short key)
TShortShortMap
increment in interface
TShortShortMap
key - the key of the value to increment
public boolean adjustValue(short key,
short amount)
TShortShortMap
adjustValue in interface
TShortShortMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public short adjustOrPutValue(short key,
short adjust_amount,
short put_amount)
TShortShortMap
adjustOrPutValue in interface
TShortShortMap
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