public class Quote
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Quote() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(java.lang.String tag)
Adds a tag to the list of tags associated with the quote.
|
void |
addTags(java.util.List<java.lang.String> tags)
Adds the tags to the list of tags associated with the quote.
|
boolean |
equals(java.lang.Object o) |
java.util.Date |
getDate()
Returns the date of the quote.
|
java.lang.String |
getId()
Returns the unique id of the quote.
|
java.lang.String |
getSourceUrl()
Returns the source url of the quote.
|
java.util.List<java.lang.String> |
getTags()
Returns the tags associated with the quote.
|
java.lang.String |
getValue()
Returns the actual quote.
|
int |
hashCode() |
void |
setDate(java.util.Date date)
Sets the date of the quote.
|
void |
setId(java.lang.String id)
Sets the unique id of the quote.
|
void |
setSourceUrl(java.lang.String sourceUrl)
Sets the source url of the quote.
|
void |
setTags(java.util.List<java.lang.String> tags)
Sets the tags associated with the quote.
|
void |
setValue(java.lang.String value)
Sets the actual quote.
|
java.lang.String |
toString() |
public java.lang.String getId()
public void setId(java.lang.String id)
id - the unique idpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - the quote valuepublic java.lang.String getSourceUrl()
public void setSourceUrl(java.lang.String sourceUrl)
sourceUrl - the source urlpublic java.util.Date getDate()
public void setDate(java.util.Date date)
date - the datepublic java.util.List<java.lang.String> getTags()
public void setTags(java.util.List<java.lang.String> tags)
tags - the tagspublic void addTag(java.lang.String tag)
tag - the tagpublic void addTags(java.util.List<java.lang.String> tags)
tags - the tagspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object