|
OpMath | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.opmath.util.datastruct.OrderedHashtable
|
+--com.opmath.util.datastruct.UCHashtable
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.
| 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 |
public UCHashtable()
UCHashtable instance. Its entries will be added later.
public UCHashtable(ComparableList newKeys)
UCHashtable instance. Its entries are identified by keys contained
in the ComparableList.
NOTE: Multiple instances of the same key are discarded.
newKeys - the ComparableList supplying the keys.public UCHashtable(String[] newStrKeys)
UCHashtable instance. The entries are identified by keys contained
in the String array.
NOTE: Multiple instances of the same key are discarded.
newStrKeys - the String[] supplying the keys.| Method Detail |
protected Object normalized(Object key)
Used to normalize UCHashtable keys according to the following rules.
java.lang.String, then return the key unchanged.
java.lang.String, then return an uppercase version of the key.
java.lang.String and the class type java.lang.String
cannot be found, then report to System.err and return null.
normalized in class OrderedHashtablekey - the Object key to be normalized.
|
OpMath | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||