de.grogra.xl.util
public class XHashMap<K,V> extends java.lang.Object implements java.lang.Iterable<XHashMap.Entry<K,V>>
| Modifier and Type | Class and Description |
|---|---|
static class |
XHashMap.Entry<K,V> |
| Constructor and Description |
|---|
XHashMap() |
XHashMap(int capacity) |
XHashMap(int capacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key,
V value) |
void |
clear() |
boolean |
containsKey(K key) |
protected boolean |
equals(K a,
K b) |
V |
get(K key) |
java.lang.Object |
get(K key,
java.lang.Object defaultValue) |
XHashMap.Entry |
getEntry(K key) |
protected int |
getHashCode(K o) |
boolean |
isEmpty() |
java.util.Iterator<XHashMap.Entry<K,V>> |
iterator() |
V |
put(K key,
V value) |
V |
remove(K key) |
V |
remove(K key,
V value) |
void |
remove(XHashMap.Entry<K,V> entry) |
void |
removeAll(K key) |
int |
size() |
public XHashMap()
public XHashMap(int capacity)
public XHashMap(int capacity,
float loadFactor)
public void clear()
public boolean containsKey(K key)
public java.lang.Object get(K key, java.lang.Object defaultValue)
public XHashMap.Entry getEntry(K key)
protected int getHashCode(K o)
public boolean isEmpty()
public java.util.Iterator<XHashMap.Entry<K,V>> iterator()
iterator in interface java.lang.Iterable<XHashMap.Entry<K,V>>public void remove(XHashMap.Entry<K,V> entry)
public void removeAll(K key)
public int size()