Class ElementMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, NavigableMap<String,Object>, SortedMap<String,Object>
Direct Known Subclasses:
ChannelInfo, ObjectInfo, ParamInfo

public class ElementMap extends TreeMap<String,Object>
Maps an element name to its associated string value.
See Also:
  • Constructor Details

    • ElementMap

      public ElementMap()
      Constructs a new ElementMap instance.
    • ElementMap

      public ElementMap(Comparator<String> comparator)
      Constructs a new ElementMap instance with a comparator.
      Parameters:
      comparator - the comparator used to order this map. If null, the natural ordering is used.
  • Method Details

    • put

      public final Object put(String name, Object value)
      Associates an object value with the specified name in this map. If the map previously contained a mapping for the name, the old value is replaced. If the specified value is null, the current mapping for the name is preserved.
      Specified by:
      put in interface Map<String,Object>
      Overrides:
      put in class TreeMap<String,Object>
      Parameters:
      name - the name to which the value is to be associated.
      value - the object value to associate with name (can be null).
      Returns:
      the previous value of name or null.
      Throws:
      NullPointerException - if name is null.