T - type of elementspublic class HalfByteHashMap<T> extends Object implements ByteMap<T>
| Constructor and Description |
|---|
HalfByteHashMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all elements of this map.
|
boolean |
containsKey(byte key)
Return true if the map contains the given key.
|
T |
get(byte key)
Get a value.
|
boolean |
isEmpty()
Return true if this map is empty.
|
T |
put(byte key,
T element)
Put a value and return the previous value associated with this key, or null.
|
T |
remove(byte key)
Remove a value.
|
int |
size()
Return the number of elements.
|
Iterator<T> |
values()
Iterates on values.
|
public T put(byte key, T element)
ByteMappublic int size()
PrimitiveMapsize in interface PrimitiveMap<T>public boolean isEmpty()
PrimitiveMapisEmpty in interface PrimitiveMap<T>public boolean containsKey(byte key)
ByteMapcontainsKey in interface ByteMap<T>public void clear()
PrimitiveMapclear in interface PrimitiveMap<T>public Iterator<T> values()
PrimitiveMapvalues in interface PrimitiveMap<T>Copyright © 2019. All rights reserved.