Fish & Chips Club 4.10.0.0

hirondelle.fish.main.discussion
Class Comment

Object
  extended by hirondelle.fish.main.discussion.Comment

public final class Comment
extends Object

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

Comment

public Comment(SafeText aUserName,
               SafeText aBody,
               Date aDate)
        throws ModelCtorException
Constructor.

Parameters:
aUserName - identifies the logged in user posting the comment.
aBody - the comment, must have content.
aDate - date and time when the message was posted.
Throws:
ModelCtorException
Method Detail

getUserName

public SafeText getUserName()
Return the logged in user name passed to the constructor.


getBody

public SafeText getBody()
Return the body of the message passed to the constructor.


getDate

public Date getDate()
Return a defensive copy of the date passed to the constructor.

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.


toString

public String toString()
Intended for debugging only.

Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26