edu.northwestern.at.wordhoard.model.wrappers
Interface TextWrapped

All Known Implementing Classes:
MemoryTextWrapper, RemoteTextWrapper, TextWrapper

public interface TextWrapped

An interface for a text wrapper.

Classes implementing this interface wrap a Text object.


Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if some other object is equal to this one.
 Text getText()
          Gets the text.
 int hashCode()
          Returns a hash code for the object.
 void setText(Text text)
          Sets the text.
 

Method Detail

getText

Text getText()
Gets the text.

Returns:
The text.

setText

void setText(Text text)
Sets the text.

Parameters:
text - The text.

equals

boolean equals(java.lang.Object obj)
Returns true if some other object is equal to this one.

The two work parts are equal if their ids are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object.
Returns:
True if this object equals the other object.

hashCode

int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.