|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.ri.createlab.rss.FeedEntry
public final class FeedEntry
FeedEntry
represents a single entry from an RSS feed.
Constructor Summary | |
---|---|
FeedEntry(String author,
String title,
String link,
String description,
Date publishedDate)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getAuthor()
Returns the author, or an empty String if no author exists. |
String |
getDescription()
Returns the description, or an empty String if no description exists. |
String |
getLink()
Returns the link, or an empty String if no link exists. |
long |
getPublishedTimestamp()
Returns the published timestamp, or 0 if no timestamp exists. |
Date |
getPublishedTimestampAsDate()
Returns the published timestamp as a Date . |
String |
getTitle()
Returns the title, or an empty String if no title exists. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeedEntry(String author, String title, String link, String description, Date publishedDate)
Method Detail |
---|
public String getAuthor()
String
if no author exists. Guaranteed to not return null
.
public String getTitle()
String
if no title exists. Guaranteed to not return null
.
public String getLink()
String
if no link exists. Guaranteed to not return null
.
public String getDescription()
String
if no description exists. Guaranteed to not return null
.
public long getPublishedTimestamp()
public Date getPublishedTimestampAsDate()
published timestamp
as a Date
. Note that the date will be
the "epoch" date if no timestamp actually exists.
Date
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |