public class TObjectLongHashMapDecorator<V> extends AbstractMap<V ,Long > implements Map <V ,Long >
AbstractMap.SimpleEntry <K,V>, AbstractMap.SimpleImmutableEntry <K,V> | Modifier and Type | Field and Description |
|---|---|
protected TObjectLongHashMap |
_map
the wrapped primitive map
|
| Constructor and Description |
|---|
TObjectLongHashMapDecorator(TObjectLongHashMap
Creates a wrapper that decorates the specified primitive map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empties the map.
|
TObjectLongHashMapDecorator |
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.
|
Long |
get(Object
Retrieves the value for
key
|
TObjectLongHashMap |
getMap()
Returns a reference to the map wrapped by this decorator.
|
boolean |
isEmpty()
Indicates whether map has any entries.
|
Long |
put(V key, Long
Inserts a key/value pair into the map.
|
void |
putAll(Map
Copies the key/value mappings in
map into this map.
|
Long |
remove(Object
Deletes a key/value pair from the map.
|
int |
size()
Returns the number of entries in the map.
|
protected V |
unwrapKey(Object
Unwraps a key
|
protected long |
unwrapValue(Object
Unwraps a value
|
protected V |
wrapKey(Object
Wraps a key
|
protected Long |
wrapValue(long k)
Wraps a value
|
hashCode, keySet, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, valuesprotected TObjectLongHashMap<V> _map
public TObjectLongHashMapDecorator(TObjectLongHashMap<V> map)
public TObjectLongHashMap<V> getMap()
public TObjectLongHashMapDecoratorclone()
clone in class
AbstractMap<V,Long>
public boolean equals(Objectother)
public void clear()
public boolean containsValue(Objectval)
containsValue in interface
Map<V,Long>
containsValue in class
AbstractMap<V,Long>
val - an
Object value
boolean value
public boolean containsKey(Objectkey)
containsKey in interface
Map<V,Long>
containsKey in class
AbstractMap<V,Long>
key - an
Object value
boolean value
public int size()
public boolean isEmpty()
public void putAll(Map<? extends V ,? extends Long > map)
protected final V wrapKey(Objecto)
o - key in the underlying map
protected final V unwrapKey(Objectkey)
key - wrapped key
protected LongwrapValue(long k)
k - value in the underlying map
protected long unwrapValue(Objectvalue)
value - wrapped value