|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.attributes.IndexedAttributeHolder
public final 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 IndexedAttributeAccessor |
indexedAttributeAccessor
|
| Constructor Summary | |
|---|---|
IndexedAttributeHolder(AttributeBuilder attributeBuilder)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear all the attributes. |
java.lang.Object |
getAttribute(java.lang.String name)
Return an object based on a name. |
AttributeBuilder |
getAttributeBuilder()
Get AttributeBuilder, associated with this holder |
java.util.Set<java.lang.String> |
getAttributeNames()
Return a Set of attribute names. |
IndexedAttributeAccessor |
getIndexedAttributeAccessor()
Returns IndexedAttributeAccessor for accessing Attributes
by index. |
void |
recycle()
Recycle AttributeHolder |
java.lang.Object |
removeAttribute(java.lang.String name)
Remove a name/value object. |
void |
setAttribute(java.lang.String name,
java.lang.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 final DefaultAttributeBuilder attributeBuilder
protected final IndexedAttributeAccessor indexedAttributeAccessor
| Constructor Detail |
|---|
public IndexedAttributeHolder(AttributeBuilder attributeBuilder)
| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface AttributeHoldername - - name of an attribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface AttributeHoldername - - name of an attributevalue - - value of named attributepublic java.lang.Object removeAttribute(java.lang.String name)
removeAttribute in interface AttributeHoldername - - name of an attribute
public java.util.Set<java.lang.String> getAttributeNames()
Set of attribute names.
getAttributeNames in interface AttributeHolderSet of attribute namespublic void recycle()
recycle in interface AttributeHolderpublic 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 | |||||||||