Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.run.xml
Class SimpleElement.AttributeMap

    java.lang.Object
      java.util.AbstractMap
          com.tangosol.run.xml.SimpleElement.AttributeMap

All Implemented Interfaces:
  ExternalizableLite, java.io.Serializable, java.lang.Cloneable, java.util.Map

Enclosing class:
  SimpleElement

    public class SimpleElement.AttributeMap

extends java.util.AbstractMap
implements java.lang.Cloneable, java.io.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.

Nested Class Summary
`class` | `SimpleElement.AttributeMap.Entry` An implementation of Entry that supports keeping them in a list.
`protected class` | `SimpleElement.AttributeMap.EntrySet` A Set implementation to hold Entry objects.

Constructor Summary
`SimpleElement.AttributeMap()`

Method Summary
`void` | `clear()`
`java.lang.Object` | `clone()`
`boolean` | `containsKey(java.lang.Object key)`
`java.util.Set` | `entrySet()`
`boolean` | `equals(java.lang.Object o)`
`protected SimpleElement.AttributeMap.Entry` | `findEntry(java.lang.Object oKey)` Find an entry with the specified key.
`java.lang.Object` | `get(java.lang.Object key)`
`protected SimpleElement.AttributeMap.Entry` | `getFirstEntry()` Return the first entry in the list..
`protected SimpleElement.AttributeMap.Entry` | `instantiateEntry(java.lang.Object oKey, java.lang.Object oVal)` Instantiate an Entry instance.
`protected java.util.Set` | `instantiateEntrySet()` Instantiate an Entry Set.
`java.lang.Object` | `put(java.lang.Object key, java.lang.Object value)`
`void` | `readExternal(java.io.DataInput in)` Restore the contents of this object by loading the object's state from the passed DataInput object.
`java.lang.Object` | `remove(java.lang.Object key)`
`int` | `size()`
`void` | `writeExternal(java.io.DataOutput out)` Save the contents of this object by storing the object's state into the passed DataOutput object.

Methods inherited from class java.util.AbstractMap
`containsValue, hashCode, isEmpty, keySet, putAll, toString, values`

Constructor Detail

### SimpleElement.AttributeMap

    public SimpleElement.AttributeMap()

Method Detail

### size

    public int size()

  Specified by:
    `size` in interface `java.util.Map`
  Overrides:
    `size` in class `java.util.AbstractMap`

### containsKey

    public boolean containsKey(java.lang.Object key)

  Specified by:
    `containsKey` in interface `java.util.Map`
  Overrides:
    `containsKey` in class `java.util.AbstractMap`

### get

    public java.lang.Object get(java.lang.Object key)

  Specified by:
    `get` in interface `java.util.Map`
  Overrides:
    `get` in class `java.util.AbstractMap`

### put

    public java.lang.Object put(java.lang.Object key,
                                java.lang.Object value)

  Specified by:
    `put` in interface `java.util.Map`
  Overrides:
    `put` in class `java.util.AbstractMap`

### remove

    public java.lang.Object remove(java.lang.Object key)

  Specified by:
    `remove` in interface `java.util.Map`
  Overrides:
    `remove` in class `java.util.AbstractMap`

### clear

    public void clear()

  Specified by:
    `clear` in interface `java.util.Map`
  Overrides:
    `clear` in class `java.util.AbstractMap`

### entrySet

    public java.util.Set entrySet()

  Specified by:
    `entrySet` in interface `java.util.Map`
  Specified by:
    `entrySet` in class `java.util.AbstractMap`

### equals

    public boolean equals(java.lang.Object o)

  Specified by:
    `equals` in interface `java.util.Map`
  Overrides:
    `equals` in class `java.util.AbstractMap`

### clone

    public java.lang.Object clone()

  Overrides:
    `clone` in class `java.util.AbstractMap`

### readExternal

    public void readExternal(java.io.DataInput in)
                      throws java.io.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:
    `java.io.IOException` - if an I/O exception occurs
    `java.io.NotActiveException` - if the object is not in its initial state, and therefore cannot be deserialized into

### writeExternal

    public void writeExternal(java.io.DataOutput out)
                       throws java.io.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:
    `java.io.IOException` - if an I/O exception occurs

### instantiateEntry

    protected SimpleElement.AttributeMap.Entry instantiateEntry(java.lang.Object oKey,
                                                                java.lang.Object oVal)

  Instantiate an Entry instance. This method permits inheriting classes to easily override the implementation of Entity.

### findEntry

    protected SimpleElement.AttributeMap.Entry findEntry(java.lang.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 java.util.Set instantiateEntrySet()

  Instantiate an Entry Set. This method permits inheriting classes to easily override the implementation of the Entity Set.

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.