blather.model
Class Blab

java.lang.Object
  extended by blather.model.Blab
All Implemented Interfaces:
BlabInterface, java.io.Serializable

public class Blab
extends java.lang.Object
implements java.io.Serializable, BlabInterface

This class models an individual blather post, or "blab." A blab has some content (e.g. "im in ur methodz, casting ur objectz!!1!") and a creation time.

See Also:
Serialized Form

Constructor Summary
Blab(java.lang.String content, java.lang.String username)
          Creates a new blab with the given content and username, with the current time as its creation time.
 
Method Summary
 java.lang.String getContent()
          Returns the content of this blab.
 SimpleDate getDate()
          Returns the creation date of this blab.
 java.lang.String getUserName()
          Returns the name of the user who posted this blab.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blab

public Blab(java.lang.String content,
            java.lang.String username)
Creates a new blab with the given content and username, with the current time as its creation time. Hint: use the SimpleDate.now() method to get the current time.

Parameters:
content - the text of this blab
username -
Method Detail

getContent

public java.lang.String getContent()
Description copied from interface: BlabInterface
Returns the content of this blab.

Specified by:
getContent in interface BlabInterface
Returns:

getDate

public SimpleDate getDate()
Description copied from interface: BlabInterface
Returns the creation date of this blab.

Specified by:
getDate in interface BlabInterface
Returns:
the creation date of this blab.

getUserName

public java.lang.String getUserName()
Description copied from interface: BlabInterface
Returns the name of the user who posted this blab.

Specified by:
getUserName in interface BlabInterface
Returns:
the name of the user who posted this blab.