net.handle.util
Class IntTable

java.lang.Object
  extended by 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).


Nested Class Summary
 class IntTable.IntTableEnumerator
           
 
Constructor Summary
IntTable()
           
IntTable(int initialCapacity)
           
IntTable(int initialCapacity, float loadFactor)
           
 
Method Summary
 void clear()
           
 boolean contains(java.lang.Object value)
           
 boolean containsKey(int key)
           
 java.lang.Object get(int key)
           
 boolean isEmpty()
           
 IntTable.IntTableEnumerator keys()
           
 void put(int key, java.lang.Object value)
           
protected  void rehash()
           
 void remove(int key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntTable

public IntTable(int initialCapacity,
                float loadFactor)

IntTable

public IntTable(int initialCapacity)

IntTable

public IntTable()
Method Detail

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()