|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.collection.ArrayAttributeMap
org.apache.myfaces.trinidadinternal.ui.collection.FlaggedAttributeMap
@Deprecated public final class FlaggedAttributeMap
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.
IndexedAttributeMap| Constructor Summary | |
|---|---|
FlaggedAttributeMap()
Deprecated. |
|
FlaggedAttributeMap(int size)
Deprecated. |
|
FlaggedAttributeMap(int size,
int increment)
Deprecated. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(UIXRenderingContext context,
AttributeKey key)
Deprecated. Returns the value in the AttributeMap specified by the key. |
protected void |
putAttribute(AttributeKey key,
java.lang.Object value)
Deprecated. |
protected void |
removeAttribute(AttributeKey key)
Deprecated. |
| Methods inherited from class org.apache.myfaces.trinidadinternal.ui.collection.ArrayAttributeMap |
|---|
attributeKeys, clone, setAttribute, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FlaggedAttributeMap()
public FlaggedAttributeMap(int size)
public FlaggedAttributeMap(int size,
int increment)
| Method Detail |
|---|
public java.lang.Object getAttribute(UIXRenderingContext context,
AttributeKey key)
AttributeMap
getAttribute in interface AttributeMapgetAttribute in class ArrayAttributeMap
protected void putAttribute(AttributeKey key,
java.lang.Object value)
putAttribute in class ArrayAttributeMapprotected void removeAttribute(AttributeKey key)
removeAttribute in class ArrayAttributeMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||