org.geotools.util
Class CheckedHashMap
java.lang.Object
java.util.AbstractMap
java.util.HashMap
java.util.LinkedHashMap
org.geotools.util.CheckedHashMap
- All Implemented Interfaces:
- java.lang.Cloneable, org.opengis.util.Cloneable, java.util.Map, java.io.Serializable
- public class CheckedHashMap
- extends java.util.LinkedHashMap
- implements org.opengis.util.Cloneable
Acts as a typed Map
while we wait for Java 5.0.
- Since:
- 2.1
- Version:
- $Id: CheckedHashMap.java 17672 2006-01-19 00:25:55Z desruisseaux $
- Author:
- Jody Garnett (Refractions Research), Martin Desruisseaux
- See Also:
- Serialized Form
- To Do:
- Provides synchronization facility on arbitrary lock, for use with the metadata package.
The lock would be the metadata that owns this collection. Be carefull to update the lock
after a clone (this work may be done in ).
Constructor Summary |
CheckedHashMap(java.lang.Class keyType,
java.lang.Class valueType)
Constructs a map of the specified type. |
Method Summary |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this map.
|
Methods inherited from class java.util.LinkedHashMap |
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
clone, containsKey, entrySet, isEmpty, keySet, 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 org.opengis.util.Cloneable |
clone |
Methods inherited from interface java.util.Map |
equals, hashCode |
CheckedHashMap
public CheckedHashMap(java.lang.Class keyType,
java.lang.Class valueType)
- Constructs a map of the specified type.
- Parameters:
keyType
- The key type (should not be null).valueType
- The value type (should not be null).
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Associates the specified value with the specified key in this map.
If the map previously contained a mapping for this key, the old
value is replaced.
- Specified by:
put
in interface java.util.Map
- Parameters:
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
- Returns:
- previous value associated with specified key, or .
Copyright © GeoTools. All Rights Reserved.