|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.croftsoft.core.util.state.StateLib
public class StateLib
Static methods to support concrete implementations of the State interface.
Reference:
Mark Roulo,
"How to avoid traps and correctly override methods
from java.lang.Object", January 1999, JavaWorld.
Method Summary | |
---|---|
static boolean |
equals(State state,
Object other)
Returns true if the classes and State keys are equal. |
static int |
hashCode(State state)
Returns the hash code of the State key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean equals(State state, Object other)
public boolean equals ( Object other ) { return StateLib.equals ( this, other ); }
public static int hashCode(State state)
return state.getKey ( ).hashCode ( );State implementation usage:
public int hashCode ( ) { return StateLib.hashCode ( this ); }
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |