Package com.kheops.util
Class IntHashtable
java.lang.Object
java.util.Dictionary
com.kheops.util.IntHashtable
- All Implemented Interfaces:
- Serializable,- Cloneable
A Hashtable that uses ints as the keys.
 
Use just like java.util.Hashtable, except that the keys must be ints. This is much faster than creating a new Integer for each access.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionIntHashtable(int initialCapacity) IntHashtable(int initialCapacity, float loadFactor) 
- 
Method Summary
- 
Constructor Details- 
IntHashtablepublic IntHashtable(int initialCapacity, float loadFactor) 
- 
IntHashtablepublic IntHashtable(int initialCapacity) 
- 
IntHashtablepublic IntHashtable()
 
- 
- 
Method Details- 
sizepublic int size()- Specified by:
- sizein class- Dictionary
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin class- Dictionary
 
- 
keys- Specified by:
- keysin class- Dictionary
 
- 
elements- Specified by:
- elementsin class- Dictionary
 
- 
contains
- 
containsKeypublic boolean containsKey(int key) 
- 
get
- 
get- Specified by:
- getin class- Dictionary
 
- 
rehashprotected void rehash()
- 
put
- 
put- Specified by:
- putin class- Dictionary
 
- 
remove
- 
remove- Specified by:
- removein class- Dictionary
 
- 
clearpublic void clear()
- 
clone
- 
toString
 
-