T - Type of the attribute-value this key is referring topublic final class AttributeKey<T> extends Object
IoSession. A key
consists of the Type of the referenced attribute value and a name.AttributeKey's are equal if the have the same attribute-type and
attribute-name.| Constructor and Description |
|---|
AttributeKey(Class<T> attributeType,
String attributeName)
Creates a new
AttributeKey with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
static <T> AttributeKey<T> |
createKey(Class<T> attributeType,
String attributeName)
Creates a new
AttributeKey with the given parameters. |
boolean |
equals(Object obj) |
String |
getName()
Returns the name of this key.
|
Class<T> |
getType()
Returns the type of this key.
|
int |
hashCode() |
public AttributeKey(Class<T> attributeType, String attributeName)
AttributeKey with the given parameters. A
IllegalArgumentException will be thrown if any parameter is
null.attributeType - type of the referenced attribute-value, must not be
nullattributeName - name of this key, must not be nullIllegalArgumentException - if any parameter is nullcreateKey(Class, String)public static <T> AttributeKey<T> createKey(Class<T> attributeType, String attributeName)
AttributeKey with the given parameters. A
IllegalArgumentException will be thrown if any parameter is
null. AttributeKey(Class, String)attributeType - type of the referenced attribute-value, must not be
nullattributeName - name of this key, must not be nullIllegalArgumentException - if any parameter is nullAttributeKey(Class, String)public String getName()
nullpublic Class<T> getType()
nullCopyright © 2009–2013 Apache MINA Project. All rights reserved.