oracle.cabo.ui.collection
Class ArrayAttributeMap
java.lang.Object
|
+--oracle.cabo.ui.collection.ArrayAttributeMap
- All Implemented Interfaces:
- AttributeMap
- Direct Known Subclasses:
- FlaggedAttributeMap, IndexedAttributeMap
- public class ArrayAttributeMap
- extends java.lang.Object
- implements AttributeMap
AttributeMap implementation that stores AttributeKey value pairs in
an array and locates the desired AttributeKey by making a linear scan.
Although extremely memory efficient and fast for the number of attributes
stored on most UINodes ( < 15), FlaggedAttributeMap is a better general
purpose AttributeMap implementation for use as UINode storage.
- See Also:
FlaggedAttributeMap
,
IndexedAttributeMap
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArrayAttributeMap
public ArrayAttributeMap()
ArrayAttributeMap
public ArrayAttributeMap(int size)
ArrayAttributeMap
public ArrayAttributeMap(int size,
int increment)
getAttribute
public java.lang.Object getAttribute(RenderingContext context,
AttributeKey key)
- Description copied from interface:
AttributeMap
- Returns the value in the AttributeMap specified by the key.
- Specified by:
getAttribute
in interface AttributeMap
setAttribute
public void setAttribute(AttributeKey key,
java.lang.Object value)
- Description copied from interface:
AttributeMap
- Sets an attribute value specified by the key to the new value.
- Specified by:
setAttribute
in interface AttributeMap
attributeKeys
public java.util.Enumeration attributeKeys(RenderingContext context)
- Description copied from interface:
AttributeMap
- Returns an Enumeration of all of the AttributeKeys in the AttributeMap
that values exist for.
- Specified by:
attributeKeys
in interface AttributeMap
size
public int size()
clone
public java.lang.Object clone()
- Clones the map.
- Overrides:
clone
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
putAttribute
protected void putAttribute(AttributeKey key,
java.lang.Object value)
removeAttribute
protected void removeAttribute(AttributeKey key)