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 |
authorName |
String |
content |
String |
contentType |
String |
id |
String |
link |
String |
summary |
String |
title |
long |
updated |
| Constructor and Description |
|---|
NewsEntry() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NewsEntry e)
reverse, newest first
|
boolean |
equals(Object o) |
int |
hashCode() |