org.apache.myfaces.trinidadinternal.ui.collection
Class FlaggedAttributeMap
java.lang.Object
org.apache.myfaces.trinidadinternal.ui.collection.ArrayAttributeMap
org.apache.myfaces.trinidadinternal.ui.collection.FlaggedAttributeMap
- All Implemented Interfaces:
- AttributeMap
public final class FlaggedAttributeMap
- extends ArrayAttributeMap
AttributeMap that stores a bitflag indicating the presence of
an indexed AttributeKey in the AttributeMap. The use of
the bitflags makes determining that no value for an indexed AttributeKey
exists extremely fast. As gets for indexed AttributeKeys that do
not exist in the AttributeMap make up the vast majority of gets
on AttributeMaps used as storage for UINodes, using a FlaggedAttributeMap
is a huge improvement over ArrayAttributeMap for performance. In fact,
given the small size overhead of maintaining the flags,
the FlaggedAttributeMap is the best general purpose AttributeMap to
use for storing the attributes of UINodes.
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/collection/FlaggedAttributeMap.java#0 $) $Date: 10-nov-2005.18:57:34 $
- Author:
- The Oracle ADF Faces Team
- See Also:
IndexedAttributeMap
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FlaggedAttributeMap
public FlaggedAttributeMap()
FlaggedAttributeMap
public FlaggedAttributeMap(int size)
FlaggedAttributeMap
public FlaggedAttributeMap(int size,
int increment)
getAttribute
public java.lang.Object getAttribute(UIXRenderingContext context,
AttributeKey key)
- Description copied from interface:
AttributeMap
- Returns the value in the AttributeMap specified by the key.
- Specified by:
getAttribute
in interface AttributeMap
- Overrides:
getAttribute
in class ArrayAttributeMap
putAttribute
protected void putAttribute(AttributeKey key,
java.lang.Object value)
- Overrides:
putAttribute
in class ArrayAttributeMap
removeAttribute
protected void removeAttribute(AttributeKey key)
- Overrides:
removeAttribute
in class ArrayAttributeMap
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.