public class ArticleEntity
The entity for the articles.
class ArticleSourceEntity| Constructor and Description |
|---|
ArticleEntity(ArticleSourceEntity source,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String url,
java.lang.String urlToImage,
java.lang.String publishedAt,
java.lang.String content)
The entity for the articles.
|
| Modifier and Type | Method and Description |
|---|---|
ArticleSourceEntity |
component1()
Data about the source
|
java.lang.String |
component2()
Name of the author
|
java.lang.String |
component3()
Title of the article
|
java.lang.String |
component4()
Short description of the article
|
java.lang.String |
component5()
Direct link to the article
|
java.lang.String |
component6()
Direct link to the article
|
java.lang.String |
component7()
IS0-8601 formatted date on when it was published
|
java.lang.String |
component8()
The content of the article
|
ArticleEntity |
copy(ArticleSourceEntity source,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String url,
java.lang.String urlToImage,
java.lang.String publishedAt,
java.lang.String content)
The entity for the articles.
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getAuthor()
Name of the author
|
java.lang.String |
getContent()
The content of the article
|
java.lang.String |
getDescription()
Short description of the article
|
java.lang.String |
getPublishedAt()
IS0-8601 formatted date on when it was published
|
ArticleSourceEntity |
getSource()
Data about the source
|
java.lang.String |
getTitle()
Title of the article
|
java.lang.String |
getUrl()
Direct link to the article
|
java.lang.String |
getUrlToImage()
Direct link to the article
|
int |
hashCode() |
java.lang.String |
toString() |
public ArticleEntity(@NotNull
ArticleSourceEntity source,
@Nullable
java.lang.String author,
@NotNull
java.lang.String title,
@Nullable
java.lang.String description,
@NotNull
java.lang.String url,
@Nullable
java.lang.String urlToImage,
@NotNull
java.lang.String publishedAt,
@Nullable
java.lang.String content)
The entity for the articles.
source - Data about the sourceauthor - Name of the authortitle - Title of the articledescription - Short description of the articleurl - Direct link to the articleurlToImage - Direct link to the article's imagepublishedAt - IS0-8601 formatted date on when it was publishedcontent - The content of the articleclass ArticleSourceEntity@NotNull public ArticleSourceEntity getSource()
Data about the source
@Nullable public java.lang.String getAuthor()
Name of the author
@NotNull public java.lang.String getTitle()
Title of the article
@Nullable public java.lang.String getDescription()
Short description of the article
@NotNull public java.lang.String getUrl()
Direct link to the article
@Nullable public java.lang.String getUrlToImage()
Direct link to the article
's image
@NotNull public java.lang.String getPublishedAt()
IS0-8601 formatted date on when it was published
@Nullable public java.lang.String getContent()
The content of the article
@NotNull public ArticleSourceEntity component1()
Data about the source
@Nullable public java.lang.String component2()
Name of the author
@NotNull public java.lang.String component3()
Title of the article
@Nullable public java.lang.String component4()
Short description of the article
@NotNull public java.lang.String component5()
Direct link to the article
@Nullable public java.lang.String component6()
Direct link to the article
's image
@NotNull public java.lang.String component7()
IS0-8601 formatted date on when it was published
@Nullable public java.lang.String component8()
The content of the article
@NotNull public ArticleEntity copy(@NotNull ArticleSourceEntity source, @Nullable java.lang.String author, @NotNull java.lang.String title, @Nullable java.lang.String description, @NotNull java.lang.String url, @Nullable java.lang.String urlToImage, @NotNull java.lang.String publishedAt, @Nullable java.lang.String content)
The entity for the articles.
source - Data about the sourceauthor - Name of the authortitle - Title of the articledescription - Short description of the articleurl - Direct link to the articleurlToImage - Direct link to the article's imagepublishedAt - IS0-8601 formatted date on when it was publishedcontent - The content of the articleclass ArticleSourceEntity@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)