Returns an enumeration of the keys in this StringMap. The elements
of the enumeration are strings.
The same key may appear multiple times in the enumeration, not
necessarily consecutively. Since get always returns
the value associated with the first occurrence of a given key, a
StringMap cannot be enumerated in the same fashion as a Hashtable.
Instead, the caller should use:
Returns the value at the specified index. The index ranges from
0 to size() - 1.
This method can be used to iterate over all the values in this
StringMap in the order in which they were inserted, subject to any
intervening deletions.
Returns the value that the specified case-insensitive key maps to
in this StringMap.
The same key may appear multiple times in the enumeration; this
method always returns the value associated with the first
occurrence of the specified key. In order to get all the values,
it is necessary to iterate over the entire StringMap to retrieve
all the values associated with a given key.
Parameters:
key - A key in this StringMap. May not be null.
Returns:
The value to which the specified key is mapped, or
null if the key is not in the StringMap.
Maps the given case-insensitive key to the specified value in this
StringMap.
The value can be retrieved by calling get with a
key that is case-insensitive equal to the given key.
If this StringMap already contained a mapping for the given key,
the old value is forgotten and the new specified value is used.
The case of the prior key is retained in that case. Otherwise
the case of the new key is used.
Parameters:
key - The new key. May not be null.
value - The new value. May be null.
Returns:
The previous value to which key was mapped,
or null if the the key did not map to any
value.
Maps the given case-insensitive key to the specified value in this
StringMap.
The new mapping is added to this StringMap even if the given key
already has a mapping. In this way it is possible to create a key
that maps to two or more values.
Since the same key may appear multiple times in this StringMap, it
is necessary to iterate over the entire StringMap to retrieve all
values associated with a given key.
Returns a string representation of this StringMap in the
form of a set of entries, enclosed in braces and separated by the
characters ", ". Each entry is rendered as the key, an equals sign
"=", and the associated value.