OpMath

com.opmath.util.datastruct
Class LCHashtable

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--com.opmath.util.datastruct.OrderedHashtable
                    |
                    +--com.opmath.util.datastruct.LCHashtable
All Implemented Interfaces:
Cloneable, Map, Serializable
Direct Known Subclasses:
ParamTable

public class LCHashtable
extends OrderedHashtable

A functional extension to com.opmath.util.datastruct.OrderedHashtable.

LCHashtable Includes a key normalization method to make keys case-insensitive. In this case keys of type java.lang.String are shifted to lower case. All other keys remain unchanged.

Copyright: (c) 2002 The Open Math Company Limited

The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.

Since:
J2SE 1.3
Version:
utilities-v011
Author:
Bruno Beloff bruno.beloff@opmath.com
See Also:
Serialized Form

Constructor Summary
LCHashtable()
          Constructs a new LCHashtable instance.
LCHashtable(ComparableList newKeys)
          Constructs a new LCHashtable instance.
LCHashtable(String[] newStrKeys)
          Constructs a new LCHashtable instance.
 
Method Summary
protected  Object normalized(Object key)
          Used to normalize UCHashtable keys according to the following rules.
 
Methods inherited from class com.opmath.util.datastruct.OrderedHashtable
containsKey, elements, get, keys, put, putAll, remove, toString
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsValue, entrySet, equals, hashCode, isEmpty, keySet, rehash, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LCHashtable

public LCHashtable()
Constructs a new LCHashtable instance. Its entries will be added later.

Since:
J2SE 1.3

LCHashtable

public LCHashtable(ComparableList newKeys)
Constructs a new LCHashtable instance. Its entries are identified by keys contained in the ComparableList.

NOTE: Multiple instances of the same key are discarded.

Parameters:
newKeys - the ComparableList supplying the keys.
Since:
J2SE 1.3

LCHashtable

public LCHashtable(String[] newStrKeys)
Constructs a new LCHashtable instance. The entries are identified by keys contained in the String array.

NOTE: Multiple instances of the same key are discarded.

Parameters:
newStrKeys - the String[] supplying the keys.
Since:
J2SE 1.3
Method Detail

normalized

protected Object normalized(Object key)
Used to normalize UCHashtable keys according to the following rules.

Overrides:
normalized in class OrderedHashtable
Parameters:
key - the Object key to be normalized.
Returns:
the normalized key.
Since:
J2SE 1.3

OpMath

Submit a bug or feature to Open Math
Copyright © 2002 Open Math Company Limited, Brighton, UK