de.grogra.xl.util
Class IntHashMap<V>
java.lang.Object
de.grogra.xl.util.IntHashMap<V>
- All Implemented Interfaces:
- java.lang.Iterable<IntHashMap.Entry<V>>
public class IntHashMap<V>
- extends java.lang.Object
- implements java.lang.Iterable<IntHashMap.Entry<V>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntHashMap
public IntHashMap()
IntHashMap
public IntHashMap(int capacity)
IntHashMap
public IntHashMap(int capacity,
float loadFactor)
add
public void add(int key,
V value)
clear
public void clear()
containsKey
public boolean containsKey(int key)
get
public V get(int key)
get
public java.lang.Object get(int key,
java.lang.Object defaultValue)
getEntry
public IntHashMap.Entry getEntry(int key)
isEmpty
public boolean isEmpty()
iterator
public java.util.Iterator<IntHashMap.Entry<V>> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<IntHashMap.Entry<V>>
put
public V put(int key,
V value)
remove
public V remove(int key)
remove
public void remove(IntHashMap.Entry<V> entry)
remove
public V remove(int key,
V value)
removeAll
public void removeAll(int key)
size
public int size()