public class NewsEntry extends Object implements Comparable<NewsEntry>
Encapsulates news item data including title, link, identifier, update timestamp, summary, content, and author information. Supports content type specification and proper sorting based on update timestamps.
Provides Comparable interface implementation for chronological ordering of news entries. All String fields may be null to accommodate optional metadata elements in news feeds.
| Modifier and Type | Field and Description |
|---|---|
String | authorNameauthor. |
String | contentcontent. |
String | contentTypecontent. |
String | idid. |
String | linklink. |
String | summarysummary. |
String | titletitle. |
long | updatedupdated. |
| Constructor and Description |
|---|
NewsEntry() |
| Modifier and Type | Method and Description |
|---|---|
int | compareTo(NewsEntry e)reverse, newest first |
boolean | equals(Object o)equals. |
int | hashCode() |
public String authorName
public String content
public String contentType
public String id
public String link
public String summary
public String title
public long updated
public int compareTo(NewsEntry e)
compareTo in interface Comparable<NewsEntry>