com.esri.gpt.framework.collection
Class StringAttributeMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,T>
com.esri.gpt.framework.collection.CaseInsensitiveMap<StringAttribute>
com.esri.gpt.framework.collection.StringAttributeMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,StringAttribute>
public class StringAttributeMap
- extends CaseInsensitiveMap<StringAttribute>
Maintains an ordered map of StringAttribute objects with case insensitive
map keys.
- See Also:
- Serialized Form
StringAttributeMap
public StringAttributeMap()
- Default constructor.
StringAttributeMap
public StringAttributeMap(boolean allowEmptyKey)
- Construct with a flag indicating if an empty map key is allowed.
- Parameters:
allowEmptyKey
- true if an empty key is allowed
add
public void add(StringAttribute member)
- Adds a member to the collection.
The member will not be added if it is null.
- Parameters:
member
- the member to add
getValue
public String getValue(String key)
- Gets the value associated with a key.
- Parameters:
key
- the subject key
- Returns:
- the associated value (null if not found)
set
public StringAttribute set(String key,
String value)
- Instantiates a new StringAttribute with the supplied key and value
and puts it into the collection.
- Parameters:
key
- the keyvalue
- the value
- Returns:
- previous value associated with the key,
or null if there was no existing mapping for the key
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.