|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrss.adt.Feed
public final class Feed
Abstract data type corresponding with RSS Feeds.
Abstraction Function:
Constructor Summary | |
---|---|
Feed(int id,
java.lang.String title,
java.lang.String descript,
java.util.List<java.lang.String> author,
java.lang.String link,
java.util.Date lastUpdated,
java.util.Date lastViewed,
java.lang.String nickname,
java.lang.String icon)
Instantiates a new Feed object with the given parameters |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Two Feeds are equal only when they are both base feeds and the URI of one equals the URI of the other |
java.util.List<java.lang.String> |
getAuthor()
Accessor for the author(s) of the feed |
java.lang.String |
getDescript()
Accessor for the description of feed |
java.lang.String |
getIcon()
Accessor for the path of icon graphic |
int |
getId()
Accessor for the unique identifier of the feed |
java.util.Date |
getLastUpdated()
Accessor for the last downloaded date |
java.util.Date |
getLastViewed()
Accessor for the last viewed date |
java.lang.String |
getLink()
Accessor for the URI of the feed |
java.lang.String |
getNickname()
Accessor for the Nickname of the feed |
java.lang.String |
getTitle()
Accessor for the title of the feed |
int |
hashCode()
HashCode generator for unique storage in HashTables |
void |
setAuthor(java.util.List<java.lang.String> author)
Modifier for the author(s) of the feed |
void |
setDescript(java.lang.String descript)
Modifier for the description of feed |
void |
setIcon(java.lang.String icon)
Modifier to set the path to the icon graphic |
void |
setLastUpdated(java.util.Date lastUpdated)
Modifier for the last downloaded date |
void |
setLastViewed(java.util.Date lastViewed)
Modifier for the last viewed date |
void |
setNickname(java.lang.String nickname)
Modifier for the Nickname of the feed |
void |
setTitle(java.lang.String title)
Modifier for the title of the feed |
java.lang.String |
toString()
Method for displaying internal state for debugging purposes |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Feed(int id, java.lang.String title, java.lang.String descript, java.util.List<java.lang.String> author, java.lang.String link, java.util.Date lastUpdated, java.util.Date lastViewed, java.lang.String nickname, java.lang.String icon)
id
- Unique identifier of the feedtitle
- Titledescript
- Description of feedauthor
- Author(s) of feedlink
- URIlastUpdated
- When feed was last downloadedlastViewed
- When feed was last viewednickname
- Custom name of feedicon
- Path of icon imageMethod Detail |
---|
public java.util.List<java.lang.String> getAuthor()
public void setAuthor(java.util.List<java.lang.String> author)
author
- Author(s) of feedpublic java.lang.String getDescript()
public void setDescript(java.lang.String descript)
descript
- Description of feedpublic java.lang.String getIcon()
public void setIcon(java.lang.String icon)
icon
- path of icon graphicpublic java.util.Date getLastUpdated()
public void setLastUpdated(java.util.Date lastUpdated)
lastUpdated
- last downloaded datepublic java.util.Date getLastViewed()
public void setLastViewed(java.util.Date lastViewed)
lastViewed
- public java.lang.String getLink()
public java.lang.String getNickname()
public void setNickname(java.lang.String nickname)
nickname
- nicknamepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- of feedpublic int getId()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |