org.geotools.util
Class KVP

Object
  extended by AbstractMap<K,V>
      extended by HashMap<K,V>
          extended by LinkedHashMap<String,Object>
              extended by KVP
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class KVP
extends LinkedHashMap<String,Object>

A linked HashMap set up for easy construction.

Example: KVP map = new KVP("foo",1,"bar,2);

Author:
jody
See Also:
Serialized Form
Module:
modules/library/metadata (gt-metadata.jar)

Constructor Summary
KVP(Object... pairs)
          A linked HashMap set up for easy construction.
 
Method Summary
 void add(String key, Object value)
          An additive version of put; will add additional values resulting in a list.
 
Methods inherited from class LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class AbstractMap
equals, hashCode, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

KVP

public KVP(Object... pairs)
A linked HashMap set up for easy construction.

Example: KVP map = new KVP("foo",1,"bar,2);

Parameters:
pairs -
Method Detail

add

public void add(String key,
                Object value)
An additive version of put; will add additional values resulting in a list.

Parameters:
key -
value -


Copyright © 1996-2009 Geotools. All Rights Reserved.