com.croftsoft.core.util.state
Interface State

All Known Implementing Classes:
Transform3DState

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.

Version:
1999-02-06
See Also:
StateLib
Author:
David Wallace Croft

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

getKey

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.


equals

boolean equals(Object other)
Returns true if the classes and State keys are equal.

Overrides:
equals in class Object

hashCode

int hashCode()
Returns the hash code of the State key.

Overrides:
hashCode in class Object

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)