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

Variable Index

 o _values

Constructor Index

 o IHashtable()
Constructs an IHashtable with default values (capacity = 13, threshold = 75).
 o IHashtable(int, int)
Constructs an IHashtable with given capacity and threshold.

Method Index

 o _allocate(int, int)
IXVector _allocate() implementation.
 o _copy(int, int, int)
IXVector _copy() implementation.
 o _unset(int, int)
IXVector _unset() implementation.
 o get(Object)
Gets value for given 'key'.
 o getKeys()
Returns array of keys.
 o getValues()
Returns array of values.
 o put(Object, Object)
Puts a (key, value) pair.
 o remove(Object)
Removes a (key, value) pair for given 'key'.

Variables

 o _values
 protected Object _values[]

Constructors

 o IHashtable
 public IHashtable(int capacity,
                   int threshold)
Constructs an IHashtable with given capacity and threshold.

 o IHashtable
 public IHashtable()
Constructs an IHashtable with default values (capacity = 13, threshold = 75).

Methods

 o _allocate
 protected void _allocate(int length,
                          int keepLength)
IXVector _allocate() implementation. Elements are rehashed here.

Overrides:
_allocate in class IXVector
 o _unset
 protected void _unset(int index,
                       int length)
IXVector _unset() implementation.

Overrides:
_unset in class IXVector
 o _copy
 protected void _copy(int sourceIndex,
                      int destIndex,
                      int length)
IXVector _copy() implementation. Not used.

Overrides:
_copy in class IXVector
 o put
 public final void put(Object key,
                       Object value)
Puts a (key, value) pair. If given key exists, its value is replaced.

 o get
 public final Object get(Object key)
Gets value for given 'key'. Returns null if 'key' is not found.

 o remove
 public final void remove(Object key)
Removes a (key, value) pair for given 'key'.

 o getKeys
 public Object[] getKeys()
Returns array of keys. May contain nulls.

 o 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