model
Class News
java.lang.Object
model.News
public class News
- extends java.lang.Object
Repräsentiert News-Beitrag.
- Author:
- Björn Dassow
Constructor Summary |
News(java.lang.String text)
|
News(java.lang.String text,
java.lang.String id,
java.lang.String timestamp)
Creates a new instance of News |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
News
public News(java.lang.String text,
java.lang.String id,
java.lang.String timestamp)
- Creates a new instance of News
News
public News(java.lang.String text)
setTimestamp
public void setTimestamp(java.lang.String timestamp)
setText
public void setText(java.lang.String text)
setId
public void setId(java.lang.String id)
getTimestamp
public java.lang.String getTimestamp()
getText
public java.lang.String getText()
getId
public java.lang.String getId()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object