|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.map.AbstractMapDecorator
org.apache.commons.collections.map.ListOrderedMap
org.apache.torque.util.ListOrderedMapCI
public class ListOrderedMapCI
A subclass of the Apache Commons ListOrderedMap that has case insensitive String key methods. This is done by converting all String keys to lower case.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class org.apache.commons.collections.map.ListOrderedMap |
---|
insertOrder |
Fields inherited from class org.apache.commons.collections.map.AbstractMapDecorator |
---|
map |
Constructor Summary | |
---|---|
ListOrderedMapCI()
Constructs a new empty ListOrderedMap. |
Method Summary | |
---|---|
boolean |
containsKey(String key)
Test if the key exists in the mapping. |
Object |
get(String key)
Get the object associated with this key. |
int |
indexOf(String key)
Gets the index of the specified key. |
Object |
put(int index,
String key,
Object value)
Puts a key-value mapping into the map at the specified index. |
Object |
put(String key,
Object value)
Adds a value to the end of the list with the specified key. |
Object |
remove(String key)
Removes the mapping for the specified key. |
Methods inherited from class org.apache.commons.collections.map.ListOrderedMap |
---|
asList, clear, decorate, entrySet, firstKey, get, getValue, indexOf, keyList, keySet, lastKey, mapIterator, nextKey, orderedMapIterator, previousKey, put, put, putAll, remove, remove, setValue, toString, valueList, values |
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator |
---|
containsKey, containsValue, equals, get, getMap, hashCode, isEmpty, size |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, equals, get, hashCode, isEmpty, size |
Constructor Detail |
---|
public ListOrderedMapCI()
Method Detail |
---|
public Object get(String key)
key
- A case insensitive String.
public Object put(String key, Object value)
key
- A case insensitive String.value
- The value to add
public Object put(int index, String key, Object value)
index
- The index at which the mapping should be inserted.key
- A case insensitive String.value
- The value.
public int indexOf(String key)
key
- A case insensitive String.
public Object remove(String key)
key
- A case insensitive String.
public boolean containsKey(String key)
key
- The case insensitive key to test for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |