com.ibm.dse.base
Class Hashtable
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.ibm.dse.base.Hashtable
- Direct Known Subclasses:
- ErrorInfo
- public class Hashtable
- extends java.util.Hashtable
This class extends Hashtable by providing additional behaviour such as getting
the key by value, getting the object by a non-case sensitive key, removing all the
elements in the Hashtable, and providing a visual representation of the object.
- See Also:
- Serialized Form
Constructor Summary |
Hashtable()
This constructor creates a Hashtable object. |
Hashtable(int initialCapacity)
This constructor creates a Hashtable object with a specified initialCapacity. |
Hashtable(int initialCapacity,
float loadFactor)
/**
This constructor creates a Hashtable object with a specified initialCapacity
and loadFactor. |
Method Summary |
java.lang.Object |
clone()
Returns a new Hashtable cloned from the current one. |
java.lang.Object |
keyAtValue(java.lang.Object aValue)
Gets the key at the given value. |
void |
removeAll()
Removes all elements from the Hashtable. |
java.lang.String |
toString()
Returns a visual representation of the instance. |
Methods inherited from class java.util.Hashtable |
clear,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
rehash,
remove,
size,
values |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Hashtable
public Hashtable()
- This constructor creates a Hashtable object.
Hashtable
public Hashtable(int initialCapacity)
- This constructor creates a Hashtable object with a specified initialCapacity.
- Parameters:
initialCapacity
- int
Hashtable
public Hashtable(int initialCapacity,
float loadFactor)
- /**
This constructor creates a Hashtable object with a specified initialCapacity
and loadFactor.
- Parameters:
initialCapacity
- intloadFactor
- float
clone
public java.lang.Object clone()
- Returns a new Hashtable cloned from the current one.
- Overrides:
- clone in class java.util.Hashtable
- Returns:
- java.lang.Object
keyAtValue
public java.lang.Object keyAtValue(java.lang.Object aValue)
- Gets the key at the given value.
- Parameters:
aValue
- java.lang.Object- Returns:
- java.lang.Object
removeAll
public void removeAll()
- Removes all elements from the Hashtable.
toString
public java.lang.String toString()
- Returns a visual representation of the instance.
- Overrides:
- toString in class java.util.Hashtable
- Returns:
- java.lang.String