org.geotools.util
Class KVP
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<java.lang.String,java.lang.Object>
org.geotools.util.KVP
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
public class KVP
- extends java.util.LinkedHashMap<java.lang.String,java.lang.Object>
A linked HashMap set up for easy construction.
Example: KVP map = new KVP("foo",1,"bar,2);
- Author:
- jody
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary |
KVP(java.lang.Object... pairs)
A linked HashMap set up for easy construction. |
Method Summary |
void |
add(java.lang.String key,
java.lang.Object value)
An additive version of put; will add additional values resulting
in a list. |
Methods inherited from class java.util.LinkedHashMap |
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
KVP
public KVP(java.lang.Object... pairs)
- A linked HashMap set up for easy construction.
Example: KVP map = new KVP("foo",1,"bar,2);
- Parameters:
pairs
-
add
public void add(java.lang.String key,
java.lang.Object value)
- An additive version of put; will add additional values resulting
in a list.
- Parameters:
key
- value
-
Copyright © 1996-2010 Geotools. All Rights Reserved.