jrunx.util
Class MultiKeyContainer
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--jrunx.util.FlatHashtable
|
+--jrunx.util.MultiKeyContainer
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- Direct Known Subclasses:
- NoCaseContainer
- public class MultiKeyContainer
- extends FlatHashtable
fast hash table, with support for multiple values per key.
useful for storing headers. Because of the way the multi key
stuff works storing null values doesn't work (like it does with
FlatHashtable).
- See Also:
- Serialized Form
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
|
Method Summary |
void |
add(java.util.Hashtable h)
add the contents of the given hashtable |
java.lang.Object |
add(java.lang.Object key,
java.lang.String value)
|
void |
addQueryString(java.lang.String queryString,
java.lang.String enc)
parse the given string directly into this container |
java.lang.Object |
get(java.lang.Object key)
|
java.lang.String[] |
getAll(java.lang.Object key)
|
| Methods inherited from class jrunx.util.FlatHashtable |
clear, contains, containsKey, elements, find, isEmpty, keys, put, rehash, remove, size, toString |
| Methods inherited from class java.util.Hashtable |
clone, containsValue, entrySet, equals, hashCode, keySet, putAll, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MultiKeyContainer
public MultiKeyContainer()
add
public java.lang.Object add(java.lang.Object key,
java.lang.String value)
add
public void add(java.util.Hashtable h)
- add the contents of the given hashtable
- Parameters:
h - the hashtable whose contents to add
get
public java.lang.Object get(java.lang.Object key)
- Overrides:
get in class FlatHashtable
- Following copied from class:
jrunx.util.FlatHashtable
- Returns:
- the value for this key, or null if the key does not exist.
getAll
public java.lang.String[] getAll(java.lang.Object key)
- Returns:
- an array of all the string values for this key, or null
if the key does not exist, or is not a string array
addQueryString
public void addQueryString(java.lang.String queryString,
java.lang.String enc)
- parse the given string directly into this container
Copyright � 2002 Macromedia Corporation. All Rights Reserved.