|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface State
The state of an object may be communicated by a State object. Each State object has a unique key, usually the object or its unique identifier whose state or a portion of its state is reflected by this State object.
State objects are considered equal if their classes and keys are equal. This makes a State object useful in Set collections where the state or the latest subset of the state of the key object should should only be contained once. One application is the queued transmission of object state information wherein only the latest state data should be retained.
StateLib
Method Summary | |
---|---|
boolean |
equals(Object other)
Returns true if the classes and State keys are equal. |
Object |
getKey()
Returns the State key, usually the object or its unique identifier whose state or a portion of its state is reflected by this State object. |
int |
hashCode()
Returns the hash code of the State key. |
Method Detail |
---|
Object getKey()
boolean equals(Object other)
equals
in class Object
int hashCode()
hashCode
in class Object
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |