toolbox
Class ConvenientHashtable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bytoolbox.ConvenientHashtable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable
Direct Known Subclasses:
Cache

public class ConvenientHashtable
extends java.util.Hashtable

A wrapper around the java.util.Hashtable which allows to use 'int' and 'double' as keys.

Author:
ottlik
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
ConvenientHashtable()
           
ConvenientHashtable(int initialCapacity)
           
 
Method Summary
 boolean containsKey(double key)
           
 boolean containsKey(int key)
           
 boolean containsValue(double key)
           
 boolean containsValue(int key)
           
 java.lang.Object get(double key)
           
 java.lang.Object get(int key)
           
 java.lang.Object put(double key, java.lang.Object value)
           
 java.lang.Object put(int key, java.lang.Object value)
           
 java.lang.Object remove(double key)
           
 java.lang.Object remove(int key)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConvenientHashtable

public ConvenientHashtable()

ConvenientHashtable

public ConvenientHashtable(int initialCapacity)
Method Detail

containsKey

public boolean containsKey(int key)

containsValue

public boolean containsValue(int key)

get

public java.lang.Object get(int key)

put

public java.lang.Object put(int key,
                            java.lang.Object value)

remove

public java.lang.Object remove(int key)

containsKey

public boolean containsKey(double key)

containsValue

public boolean containsValue(double key)

get

public java.lang.Object get(double key)

put

public java.lang.Object put(double key,
                            java.lang.Object value)

remove

public java.lang.Object remove(double key)