|
Fish & Chips Club 4.7.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objecthirondelle.fish.main.discussion.Comment
public final class Comment
Comment posted by a possibly-anonymous user.
| Constructor Summary | |
|---|---|
Comment(SafeText aUserName,
SafeText aBody,
Date aDate)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object aThat)
|
SafeText |
getBody()
Return the body of the message passed to the constructor. |
Date |
getDate()
Return a defensive copy of the date passed to the constructor. |
SafeText |
getUserName()
Return the logged in user name passed to the constructor. |
int |
hashCode()
|
String |
toString()
Intended for debugging only. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Comment(SafeText aUserName,
SafeText aBody,
Date aDate)
throws ModelCtorException
aUserName - identifies the logged in user posting the comment.aBody - the comment, must have content.aDate - date and time when the message was posted.
ModelCtorException| Method Detail |
|---|
public SafeText getUserName()
public SafeText getBody()
public Date getDate()
The caller may change the state of the returned value, without affecting
the internals of this Comment. Such copying is needed since
a Date is a mutable object.
public String toString()
toString in class Objectpublic boolean equals(Object aThat)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Fish & Chips Club 4.7.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||