public class TUnmodifiableDoubleByteMap extends Objectimplements TDoubleByteMap , Serializable
| Constructor and Description |
|---|
TUnmodifiableDoubleByteMap(TDoubleByteMap
|
| Modifier and Type | Method and Description |
|---|---|
byte |
adjustOrPutValue(double 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(double key, byte 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(byte val)
Checks for the presence of
val in the values of the map.
|
boolean |
equals(Object
|
boolean |
forEachEntry(TDoubleByteProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TDoubleProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TByteProcedure
Executes
procedure for each value in the map.
|
byte |
get(double key)
Retrieves the value for
key
|
double |
getNoEntryKey()
Returns the value that will be returned from
TDoubleByteMap or
TDoubleByteMap if no entry exists for a given key.
|
byte |
getNoEntryValue()
Returns the value that will be returned from
TDoubleByteMap or
TDoubleByteMap 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.
|
TDoubleByteIterator |
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
|
byte |
put(double key, byte 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(TDoubleByteMap
Put all the entries from the given map into this map.
|
byte |
putIfAbsent(double key, byte value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
byte |
remove(double key)
Deletes a key/value pair from the map.
|
boolean |
retainEntries(TDoubleByteProcedure
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(TByteFunction
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 TUnmodifiableDoubleByteMap(TDoubleByteMapm)
public int size()
TDoubleByteMap
size in interface
TDoubleByteMap
public boolean isEmpty()
TDoubleByteMap
isEmpty in interface
TDoubleByteMap
public boolean containsKey(double key)
TDoubleByteMap
containsKey in interface
TDoubleByteMap
key - an
double value
boolean value
public boolean containsValue(byte val)
TDoubleByteMap
containsValue in interface
TDoubleByteMap
val - an
byte value
boolean value
public byte get(double key)
TDoubleByteMap
get in interface
TDoubleByteMap
key - an
double value
TDoubleByteMap.getNoEntryValue() ).
public byte put(double key,
byte value)
TDoubleByteMap
put in interface
TDoubleByteMap
key - an
double value
value - an
byte value
TDoubleByteMap.getNoEntryValue() ).
public byte remove(double key)
TDoubleByteMap
remove in interface
TDoubleByteMap
key - an
double value
TDoubleByteMap.getNoEntryValue() ).
public void putAll(TDoubleByteMapm)
TDoubleByteMap
putAll in interface
TDoubleByteMap
m - The map from which entries will be obtained to put into this map.
public void putAll(Map<? extends Double ,? extends Byte > map)
TDoubleByteMap
putAll in interface
TDoubleByteMap
map - The Map from which entries will be obtained to put into this map.
public void clear()
TDoubleByteMap
public TDoubleSetkeySet()
TDoubleByteMap
keySet in interface
TDoubleByteMap
public double[] keys()
TDoubleByteMap
keys in interface
TDoubleByteMap
public double[] keys(double[] array)
TDoubleByteMap
keys in interface
TDoubleByteMap
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 TByteCollectionvalueCollection()
TDoubleByteMap
valueCollection in interface
TDoubleByteMap
public byte[] values()
TDoubleByteMap
values in interface
TDoubleByteMap
public byte[] values(byte[] array)
TDoubleByteMap
values in interface
TDoubleByteMap
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()
TDoubleByteMap
TDoubleByteMap.get(double) or
TDoubleByteMap.put(double, byte) 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
TDoubleByteMap
public byte getNoEntryValue()
TDoubleByteMap
TDoubleByteMap.get(double) or
TDoubleByteMap.put(double, byte) 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
TDoubleByteMap
public boolean forEachKey(TDoubleProcedureprocedure)
TDoubleByteMap
forEachKey in interface
TDoubleByteMap
procedure - a
TDoubleProcedure value
public boolean forEachValue(TByteProcedureprocedure)
TDoubleByteMap
forEachValue in interface
TDoubleByteMap
procedure - a
T#F#Procedure value
public boolean forEachEntry(TDoubleByteProcedureprocedure)
TDoubleByteMap
forEachEntry in interface
TDoubleByteMap
procedure - a
TODoubleByteProcedure value
public TDoubleByteIteratoriterator()
iterator in interface
TDoubleByteMap
public byte putIfAbsent(double key,
byte value)
TDoubleByteMap
putIfAbsent in interface
TDoubleByteMap
key - an
double value
value - an
byte value
TDoubleByteMap.getNoEntryValue() ).
public void transformValues(TByteFunctionfunction)
TDoubleByteMap
transformValues in interface
TDoubleByteMap
function - a
TByteFunction value
public boolean retainEntries(TDoubleByteProcedureprocedure)
TDoubleByteMap
retainEntries in interface
TDoubleByteMap
procedure - determines which entries to keep
public boolean increment(double key)
TDoubleByteMap
increment in interface
TDoubleByteMap
key - the key of the value to increment
public boolean adjustValue(double key,
byte amount)
TDoubleByteMap
adjustValue in interface
TDoubleByteMap
key - the key of the value to increment
amount - the amount to adjust the value by.
public byte adjustOrPutValue(double key,
byte adjust_amount,
byte put_amount)
TDoubleByteMap
adjustOrPutValue in interface
TDoubleByteMap
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