org.jboss.portal.core.navstate
Class NavigationalStateKey

java.lang.Object
  extended by org.jboss.portal.core.navstate.NavigationalStateKey
All Implemented Interfaces:
java.io.Serializable

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

A key for navigational state.

Version:
$Revision: 8786 $
Author:
Julien Viet
See Also:
Serialized Form

Constructor Summary
NavigationalStateKey(java.lang.Class type, java.lang.Object id)
          Construct a new navigational state key.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getId()
           
 java.lang.Class getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationalStateKey

public NavigationalStateKey(java.lang.Class type,
                            java.lang.Object id)
Construct a new navigational state key.

Parameters:
type - the type of state
id - the id
Throws:
java.lang.IllegalArgumentException - if any argument is null or the id argument does not implement either Serializable or Externalizable
Method Detail

getType

public java.lang.Class getType()

getId

public java.lang.Object getId()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object