|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object hirondelle.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 Object
public boolean equals(Object aThat)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |