net.handle.util
Class IntTable
java.lang.Object
net.handle.util.IntTable
public class IntTable
- extends java.lang.Object
Class that works just like a java.util.Hashtable except the keys are
always integers (eliminating the need to creating Integer objects just
to act as keys to the table).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntTable
public IntTable(int initialCapacity,
float loadFactor)
IntTable
public IntTable(int initialCapacity)
IntTable
public IntTable()
size
public int size()
isEmpty
public boolean isEmpty()
keys
public IntTable.IntTableEnumerator keys()
contains
public boolean contains(java.lang.Object value)
containsKey
public boolean containsKey(int key)
get
public java.lang.Object get(int key)
rehash
protected void rehash()
put
public void put(int key,
java.lang.Object value)
remove
public void remove(int key)
clear
public void clear()