public class TDoubleFloatHashMapDecorator extends AbstractMap<Double ,Float > implements Map <Double ,Float >, Cloneable
AbstractMap.SimpleEntry <K,V>, AbstractMap.SimpleImmutableEntry <K,V> | Modifier and Type | Field and Description |
|---|---|
protected TDoubleFloatHashMap |
_map
the wrapped primitive map
|
| Constructor and Description |
|---|
TDoubleFloatHashMapDecorator(TDoubleFloatHashMap
Creates a wrapper that decorates the specified primitive map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empties the map.
|
TDoubleFloatHashMapDecorator |
clone()
Clones the underlying trove collection and returns the clone wrapped in a new decorator instance.
|
boolean |
containsKey(Object
Checks for the present of
key in the keys of the map.
|
boolean |
containsValue(Object
Checks for the presence of
val in the values of the map.
|
Set |
entrySet()
Returns a Set view on the entries of the map.
|
boolean |
equals(Object
Compares this map with another map for equality of their stored entries.
|
Float |
get(Double
Retrieves the value for
key
|
TDoubleFloatHashMap |
getMap()
Returns a reference to the map wrapped by this decorator.
|
boolean |
isEmpty()
Indicates whether map has any entries.
|
Float |
put(Double
Inserts a key/value pair into the map.
|
void |
putAll(Map
Copies the key/value mappings in
map into this map.
|
Float |
remove(Double
Deletes a key/value pair from the map.
|
int |
size()
Returns the number of entries in the map.
|
protected double |
unwrapKey(Object
Unwraps a key
|
protected float |
unwrapValue(Object
Unwraps a value
|
protected Double |
wrapKey(double k)
Wraps a key
|
protected Float |
wrapValue(float k)
Wraps a value
|
finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, get, getOrDefault, hashCode, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, valuesprotected TDoubleFloatHashMap_map
public TDoubleFloatHashMapDecorator(TDoubleFloatHashMapmap)
public TDoubleFloatHashMapgetMap()
public TDoubleFloatHashMapDecoratorclone()
clone in class
AbstractMap<Double,Float>
public boolean equals(Objectother)
public Floatget(Double key)
key - an
Object value
public void clear()
public Floatremove(Double key)
key - an
Object value
public Set<Map .Entry <Double ,Float >> entrySet()
public boolean containsValue(Objectval)
containsValue in interface
Map<Double,Float>
containsValue in class
AbstractMap<Double,Float>
val - an
Object value
boolean value
public boolean containsKey(Objectkey)
containsKey in interface
Map<Double,Float>
containsKey in class
AbstractMap<Double,Float>
key - an
Object value
boolean value
public int size()
public boolean isEmpty()
public void putAll(Map<? extends Double ,? extends Float > map)
protected DoublewrapKey(double k)
k - key in the underlying map
protected double unwrapKey(Objectkey)
key - wrapped key
protected FloatwrapValue(float k)
k - value in the underlying map
protected float unwrapValue(Objectvalue)
value - wrapped value