com.silverpeas.workflow.engine
Class AbstractReferrableObject

java.lang.Object
  extended by com.silverpeas.workflow.engine.AbstractReferrableObject
All Implemented Interfaces:
ReferrableObjectIntf
Direct Known Subclasses:
ActionImpl, ActionRef, ActiveState, ColumnImpl, ColumnsImpl, ConsequenceImpl, FormImpl, InterestedUser, ItemImpl, ItemRef, ItemRefs, LockingUser, ParameterImpl, ParticipantImpl, RelatedGroupImpl, RelatedUserImpl, RoleImpl, SpecificLabel, StateImpl, TriggerImpl, UserInfoImpl, UserInRoleImpl, WorkingUser

public abstract class AbstractReferrableObject
extends Object
implements ReferrableObjectIntf


Constructor Summary
AbstractReferrableObject()
           
 
Method Summary
 boolean equals(Object theOther)
          Tests equality with another referrable object
abstract  String getKey()
          This method has to be implemented by the referrable object it has to compute the unique key
 int hashCode()
          Calculate the hashcode for this referrable object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReferrableObject

public AbstractReferrableObject()
Method Detail

getKey

public abstract String getKey()
This method has to be implemented by the referrable object it has to compute the unique key

Specified by:
getKey in interface ReferrableObjectIntf
Returns:
The unique key.
See Also:
equals, hashCode

equals

public boolean equals(Object theOther)
Tests equality with another referrable object

Overrides:
equals in class Object
Parameters:
theOther -
Returns:
true if both object's keys are equals

hashCode

public int hashCode()
Calculate the hashcode for this referrable object

Overrides:
hashCode in class Object
Returns:
hashcode


Copyright © 2016 Silverpeas. All Rights Reserved.