|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | 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.LCHashtable
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.
| Inner classes inherited from class java.util.Map |
Map.Entry |
| 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 |
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LCHashtable()
LCHashtable instance. Its entries will be added later.
public LCHashtable(ComparableList newKeys)
LCHashtable 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 LCHashtable(String[] newStrKeys)
LCHashtable 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)
UCHashtable keys according to the following rules:
java.lang.String, then return the key unchanged.
java.lang.String, then return a lowercase 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||