oracle.cabo.ui.collection
Class DictionaryAttributeMap
java.lang.Object
|
+--oracle.cabo.ui.collection.DictionaryAttributeMap
- All Implemented Interfaces:
- AttributeMap
- public final class DictionaryAttributeMap
- extends java.lang.Object
- implements AttributeMap
AttributeMap implementation that delegates storage of the AttibuteMap
to a Dictionary. Although this implementation is the fastest when
large numbers of unindexed AttributeKey values are stored in the
AttributeMap, for most uses FlaggedAttributeMap has similar or better
performance at a much smaller memory cost, while IndexedAttributeMap
is faster with a similar cost.
- See Also:
FlaggedAttributeMap
,
IndexedAttributeMap
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DictionaryAttributeMap
public DictionaryAttributeMap()
DictionaryAttributeMap
public DictionaryAttributeMap(java.util.Dictionary dictionary)
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()
createDefaultDictionary
protected java.util.Dictionary createDefaultDictionary()