All Packages Class Hierarchy This Package Previous Next Index
Class com.micronova.util.IHashtable
java.lang.Object
|
+----com.micronova.util.IXVector
|
+----com.micronova.util.IXHashtable
|
+----com.micronova.util.IHashtable
- public class IHashtable
- extends IXHashtable
IHashtable is a default Object-valued Hashtable.
- Version:
- 1.0
-
_values
-
-
IHashtable()
- Constructs an IHashtable with default values (capacity = 13, threshold = 75).
-
IHashtable(int, int)
- Constructs an IHashtable with given capacity and threshold.
-
_allocate(int, int)
- IXVector _allocate() implementation.
-
_copy(int, int, int)
- IXVector _copy() implementation.
-
_unset(int, int)
- IXVector _unset() implementation.
-
get(Object)
- Gets value for given 'key'.
-
getKeys()
- Returns array of keys.
-
getValues()
- Returns array of values.
-
put(Object, Object)
- Puts a (key, value) pair.
-
remove(Object)
- Removes a (key, value) pair for given 'key'.
_values
protected Object _values[]
IHashtable
public IHashtable(int capacity,
int threshold)
- Constructs an IHashtable with given capacity and threshold.
IHashtable
public IHashtable()
- Constructs an IHashtable with default values (capacity = 13, threshold = 75).
_allocate
protected void _allocate(int length,
int keepLength)
- IXVector _allocate() implementation. Elements are rehashed here.
- Overrides:
- _allocate in class IXVector
_unset
protected void _unset(int index,
int length)
- IXVector _unset() implementation.
- Overrides:
- _unset in class IXVector
_copy
protected void _copy(int sourceIndex,
int destIndex,
int length)
- IXVector _copy() implementation. Not used.
- Overrides:
- _copy in class IXVector
put
public final void put(Object key,
Object value)
- Puts a (key, value) pair. If given key exists, its value is replaced.
get
public final Object get(Object key)
- Gets value for given 'key'. Returns null if 'key' is not found.
remove
public final void remove(Object key)
- Removes a (key, value) pair for given 'key'.
getKeys
public Object[] getKeys()
- Returns array of keys. May contain nulls.
getValues
public Object[] getValues()
- Returns array of values. If getKeys()[i] is not null, its value is getValues()[i].
All Packages Class Hierarchy This Package Previous Next Index