OpMath

com.opmath.util.datastruct
Class UCHashtable

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

public class UCHashtable
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 upper 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

Inner classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
UCHashtable()
          Constructs a new UCHashtable instance.
UCHashtable(ComparableList newKeys)
          Constructs a new UCHashtable instance.
UCHashtable(String[] newStrKeys)
          Constructs a new UCHashtable 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

UCHashtable

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

Since:
J2SE 1.3

UCHashtable

public UCHashtable(ComparableList newKeys)
Constructs a new UCHashtable 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

UCHashtable

public UCHashtable(String[] newStrKeys)
Constructs a new UCHashtable 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