org.apache.mina.core.session
Class AttributeKey

java.lang.Object
  extended by org.apache.mina.core.session.AttributeKey
All Implemented Interfaces:
java.io.Serializable

public final class AttributeKey
extends java.lang.Object
implements java.io.Serializable

A key that makes its parent Map or session attribute to search fast while being debug-friendly by providing the string representation.

Author:
Apache MINA Project
See Also:
Serialized Form

Constructor Summary
AttributeKey(java.lang.Class<?> source, java.lang.String name)
          Creates a new instance.
 
Method Summary
 java.lang.String toString()
          The String representation of tis objection is its constructed name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeKey

public AttributeKey(java.lang.Class<?> source,
                    java.lang.String name)
Creates a new instance. It's built from : - the class' name - the attribute's name - this attribute hashCode

Method Detail

toString

public java.lang.String toString()
The String representation of tis objection is its constructed name.

Overrides:
toString in class java.lang.Object