Package com.tangosol.run.xml
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
An implementation of Entry that supports keeping them in a list.protected class
A Set implementation to hold Entry objects.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
containsKey
(Object key) entrySet()
boolean
protected SimpleElement.AttributeMap.Entry
Find an entry with the specified key.protected SimpleElement.AttributeMap.Entry
Return the first entry in the list..protected SimpleElement.AttributeMap.Entry
instantiateEntry
(Object oKey, Object oVal) Instantiate an Entry instance.protected Set
Instantiate an Entry Set.void
Restore the contents of this object by loading the object's state from the passed DataInput object.int
size()
void
writeExternal
(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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
AttributeMap
public AttributeMap()
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceMap
- Overrides:
size
in classAbstractMap
-
containsKey
- Specified by:
containsKey
in interfaceMap
- Overrides:
containsKey
in classAbstractMap
-
get
- Specified by:
get
in interfaceMap
- Overrides:
get
in classAbstractMap
-
put
- Specified by:
put
in interfaceMap
- Overrides:
put
in classAbstractMap
-
remove
- Specified by:
remove
in interfaceMap
- Overrides:
remove
in classAbstractMap
-
clear
public void clear()- Specified by:
clear
in interfaceMap
- Overrides:
clear
in classAbstractMap
-
entrySet
- Specified by:
entrySet
in interfaceMap
- Specified by:
entrySet
in classAbstractMap
-
equals
- Specified by:
equals
in interfaceMap
- Overrides:
equals
in classAbstractMap
-
clone
- Overrides:
clone
in classAbstractMap
-
readExternal
Restore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternal
in interfaceExternalizableLite
- 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
Save the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternal
in interfaceExternalizableLite
- Parameters:
out
- the DataOutput stream to write the state of this object to- Throws:
IOException
- if an I/O exception occurs
-
instantiateEntry
Instantiate an Entry instance. This method permits inheriting classes to easily override the implementation of Entity.- Parameters:
oKey
- the keyoVal
- the value- Returns:
- the instantiated Entry
-
findEntry
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
Return the first entry in the list..- Returns:
- the first entry in the list
-
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
-