|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectblather.model.Blab
public class Blab
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.
| 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 |
|---|
public Blab(java.lang.String content,
java.lang.String username)
content - the text of this blabusername - | Method Detail |
|---|
public java.lang.String getContent()
BlabInterface
getContent in interface BlabInterfacepublic SimpleDate getDate()
BlabInterface
getDate in interface BlabInterfacepublic java.lang.String getUserName()
BlabInterface
getUserName in interface BlabInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||