|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.rss.RssItemKey
public class RssItemKey
The RssItemKey is used to encapsulate information pertaining to
the last item retrieved from a RSS feed. It can be used with both feeds that
provide and that don't provide a date for their contents.
| Constructor Summary | |
|---|---|
RssItemKey(com.sun.syndication.feed.synd.SyndEntry entry)
Creates a RssContactSettings object that uses date if possible or at least URI to identify feed items. |
|
| Method Summary | |
|---|---|
int |
compareTo(RssItemKey obj)
Compare 2 RssItemKey. |
static RssItemKey |
deserialize(String settings)
Used for restoring the key information from a textual representation. |
Date |
getItemDate()
Returns the date that is used as a key. |
String |
getItemUri()
Returns the URI that is used as a key. |
String |
serialize()
Serializes current key to a textual representation. |
String |
toString()
Returns the textual representation of the settings object. |
boolean |
usesDate()
Determines if the current key uses Date as a means of
identification or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RssItemKey(com.sun.syndication.feed.synd.SyndEntry entry)
entry - The last Syndentry of the RSS feed.| Method Detail |
|---|
public boolean usesDate()
Date as a means of
identification or not. Usually if true is returned this also implies that
getItemUri() == null so this should be used with care.
Similarly, if false is returned, one should assume that
getItemDate() == null.
true if date is used for identification,
false otherwise.getItemDate(),
getItemUri()public Date getItemDate()
usesDate() == false.
usesDate()public String getItemUri()
usesDate() == true.
usesDate()public static RssItemKey deserialize(String settings)
settings - textual representation of the stored data
public String serialize()
public String toString()
deserialize().
toString in class Objectdeserialize(String)public int compareTo(RssItemKey obj)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||