public final class AttributeKey
extends java.lang.Object
implements java.io.Serializable
private static final AttributeKey PROCESSOR = new AttributeKey(
SimpleIoProcessorPool.class, "processor");
This will create the SimpleIoProcessorPool.processor@7DE45C99 key
which will be stored in the session map.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The attribute's name
|
private static long |
serialVersionUID
The serial version UID
|
| Constructor and Description |
|---|
AttributeKey(java.lang.Class<?> source,
java.lang.String name)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString()
The String representation of this object.
|
private static final long serialVersionUID
private final java.lang.String name
public AttributeKey(java.lang.Class<?> source,
java.lang.String name)
source - The class this AttributeKey will be attached toname - The Attribute namepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object