org.glassfish.grizzly.attributes
Class IndexedAttributeHolder.IndexedAttributeAccessorImpl

java.lang.Object
  extended by org.glassfish.grizzly.attributes.IndexedAttributeHolder.IndexedAttributeAccessorImpl
All Implemented Interfaces:
IndexedAttributeAccessor
Enclosing class:
IndexedAttributeHolder

protected final class IndexedAttributeHolder.IndexedAttributeAccessorImpl
extends java.lang.Object
implements IndexedAttributeAccessor

IndexedAttributeAccessor implementation.


Constructor Summary
protected IndexedAttributeHolder.IndexedAttributeAccessorImpl()
           
 
Method Summary
 java.lang.Object getAttribute(int index)
          Internal method for dynamic attribute support.
 void setAttribute(int index, java.lang.Object value)
          Internal method for dynamic attribute support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedAttributeHolder.IndexedAttributeAccessorImpl

protected IndexedAttributeHolder.IndexedAttributeAccessorImpl()
Method Detail

getAttribute

public java.lang.Object getAttribute(int index)
Internal method for dynamic attribute support. Return the value of the attribute by index. If the attribute with such index is not set, set it to the default value and return the default.

Specified by:
getAttribute in interface IndexedAttributeAccessor

setAttribute

public void setAttribute(int index,
                         java.lang.Object value)
Internal method for dynamic attribute support. Set the attribute with the index to value.

Specified by:
setAttribute in interface IndexedAttributeAccessor


Copyright © 2011 Oracle Corpration. All Rights Reserved.