public class TObjectByteHashMapDecorator<V>
extends java.util.AbstractMap<V,java.lang.Byte>
implements java.util.Map<V,java.lang.Byte>
| Modifier and Type | Field and Description |
|---|---|
protected TObjectByteHashMap<V> |
_map
the wrapped primitive map
|
| Constructor and Description |
|---|
TObjectByteHashMapDecorator(TObjectByteHashMap<V> map)
Creates a wrapper that decorates the specified primitive map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empties the map.
|
boolean |
containsKey(java.lang.Object key)
Checks for the present of key in the keys of the map.
|
boolean |
containsValue(java.lang.Object val)
Checks for the presence of val in the values of the map.
|
java.util.Set<java.util.Map.Entry<V,java.lang.Byte>> |
entrySet()
Returns a Set view on the entries of the map.
|
boolean |
equals(java.lang.Object other)
Compares this map with another map for equality of their stored
entries.
|
java.lang.Byte |
get(java.lang.Object key)
Retrieves the value for key
|
boolean |
isEmpty()
Indicates whether map has any entries.
|
java.lang.Byte |
put(V key,
java.lang.Byte value)
Inserts a key/value pair into the map.
|
void |
putAll(java.util.Map<? extends V,? extends java.lang.Byte> map)
Copies the key/value mappings in map into this map.
|
java.lang.Byte |
remove(java.lang.Object key)
Deletes a key/value pair from the map.
|
int |
size()
Returns the number of entries in the map.
|
protected V |
unwrapKey(java.lang.Object key)
Unwraps a key
|
protected byte |
unwrapValue(java.lang.Object value)
Unwraps a value
|
protected V |
wrapKey(java.lang.Object o)
Wraps a key
|
protected java.lang.Byte |
wrapValue(byte k)
Wraps a value
|
protected final TObjectByteHashMap<V> _map
public TObjectByteHashMapDecorator(TObjectByteHashMap<V> map)
public java.lang.Byte put(V key, java.lang.Byte value)
public boolean equals(java.lang.Object other)
public java.lang.Byte get(java.lang.Object key)
public void clear()
public java.lang.Byte remove(java.lang.Object key)
public java.util.Set<java.util.Map.Entry<V,java.lang.Byte>> entrySet()
public boolean containsValue(java.lang.Object val)
public boolean containsKey(java.lang.Object key)
public int size()
public boolean isEmpty()
public void putAll(java.util.Map<? extends V,? extends java.lang.Byte> map)
protected final V wrapKey(java.lang.Object o)
o - key in the underlying mapprotected final V unwrapKey(java.lang.Object key)
key - wrapped keyprotected java.lang.Byte wrapValue(byte k)
k - value in the underlying mapprotected byte unwrapValue(java.lang.Object value)
value - wrapped value