|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.attributes.IndexedAttributeHolder
public class IndexedAttributeHolder
AttributeHolder, which supports indexed access to stored
Attributes. Access to such indexed Attributes could be as
fast as access to array.
AttributeHolder,
NamedAttributeHolder| Nested Class Summary | |
|---|---|
protected class |
IndexedAttributeHolder.IndexedAttributeAccessorImpl
IndexedAttributeAccessor implementation. |
| Field Summary | |
|---|---|
protected DefaultAttributeBuilder |
attributeBuilder
|
protected LightArrayList<Object> |
attributeValues
|
protected IndexedAttributeAccessor |
indexedAttributeAccessor
|
| Constructor Summary | |
|---|---|
IndexedAttributeHolder(AttributeBuilder attributeBuilder)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear all the attributes. |
Object |
getAttribute(String name)
Return an object based on a name. |
AttributeBuilder |
getAttributeBuilder()
Get AttributeBuilder, associated with this holder |
Set<String> |
getAttributeNames()
Return a Set of attribute names. |
IndexedAttributeAccessor |
getIndexedAttributeAccessor()
Returns IndexedAttributeAccessor for accessing Attributes
by index. |
Object |
removeAttribute(String name)
Remove a name/value object. |
void |
setAttribute(String name,
Object value)
Set a name/value object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LightArrayList<Object> attributeValues
protected DefaultAttributeBuilder attributeBuilder
protected IndexedAttributeAccessor indexedAttributeAccessor
| Constructor Detail |
|---|
public IndexedAttributeHolder(AttributeBuilder attributeBuilder)
| Method Detail |
|---|
public Object getAttribute(String name)
getAttribute in interface AttributeHoldername - - name of an attribute
public void setAttribute(String name,
Object value)
setAttribute in interface AttributeHoldername - - name of an attributevalue - - value of named attributepublic Object removeAttribute(String name)
removeAttribute in interface AttributeHoldername - - name of an attribute
public Set<String> getAttributeNames()
Set of attribute names.
getAttributeNames in interface AttributeHolderSet of attribute namespublic void clear()
clear in interface AttributeHolderpublic AttributeBuilder getAttributeBuilder()
getAttributeBuilder in interface AttributeHolderpublic IndexedAttributeAccessor getIndexedAttributeAccessor()
IndexedAttributeAccessor for accessing Attributes
by index.
getIndexedAttributeAccessor in interface AttributeHolderIndexedAttributeAccessor for accessing Attributes
by index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||