Class SimpleElement.AttributeMap

java.lang.Object
java.util.AbstractMap
com.tangosol.run.xml.SimpleElement.AttributeMap
All Implemented Interfaces:
ExternalizableLite, Serializable, Cloneable, Map
Enclosing class:
SimpleElement

public class SimpleElement.AttributeMap extends AbstractMap implements Cloneable, Serializable, ExternalizableLite
A Map implementation using a list that can be a read-only map that supports only Strings for keys and XmlValue for values.

As of Coherence 3.2, this is an inlined version of the old ListMap.

See Also:
  • Constructor Details

    • AttributeMap

      public AttributeMap()
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface Map
      Overrides:
      size in class AbstractMap
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map
      Overrides:
      containsKey in class AbstractMap
    • get

      public Object get(Object key)
      Specified by:
      get in interface Map
      Overrides:
      get in class AbstractMap
    • put

      public Object put(Object key, Object value)
      Specified by:
      put in interface Map
      Overrides:
      put in class AbstractMap
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map
      Overrides:
      remove in class AbstractMap
    • clear

      public void clear()
      Specified by:
      clear in interface Map
      Overrides:
      clear in class AbstractMap
    • entrySet

      public Set entrySet()
      Specified by:
      entrySet in interface Map
      Specified by:
      entrySet in class AbstractMap
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map
      Overrides:
      equals in class AbstractMap
    • clone

      public Object clone()
      Overrides:
      clone in class AbstractMap
    • readExternal

      public void readExternal(DataInput in) throws IOException
      Restore the contents of this object by loading the object's state from the passed DataInput object.
      Specified by:
      readExternal in interface ExternalizableLite
      Parameters:
      in - the DataInput stream to read data from in order to restore the state of this object
      Throws:
      IOException - if an I/O exception occurs
    • writeExternal

      public void writeExternal(DataOutput out) throws IOException
      Save the contents of this object by storing the object's state into the passed DataOutput object.
      Specified by:
      writeExternal in interface ExternalizableLite
      Parameters:
      out - the DataOutput stream to write the state of this object to
      Throws:
      IOException - if an I/O exception occurs
    • instantiateEntry

      protected SimpleElement.AttributeMap.Entry instantiateEntry(Object oKey, Object oVal)
      Instantiate an Entry instance. This method permits inheriting classes to easily override the implementation of Entity.
      Parameters:
      oKey - the key
      oVal - the value
      Returns:
      the instantiated Entry
    • findEntry

      protected SimpleElement.AttributeMap.Entry findEntry(Object oKey)
      Find an entry with the specified key.
      Parameters:
      oKey - the key to search for
      Returns:
      the entry with the specified key or null if the key could not be found
    • getFirstEntry

      protected SimpleElement.AttributeMap.Entry getFirstEntry()
      Return the first entry in the list..
      Returns:
      the first entry in the list
    • instantiateEntrySet

      protected Set instantiateEntrySet()
      Instantiate an Entry Set. This method permits inheriting classes to easily override the implementation of the Entity Set.
      Returns:
      the instantiated set of Entry's