public class Joke
extends java.lang.Object
| Constructor and Description |
|---|
Joke() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategories(java.util.List<java.lang.String> categories)
Adds the categories to the list of categories associated with the joke.
|
void |
addCategory(java.lang.String category)
Adds a category to the list of categories associated with the joke.
|
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getCategories()
Returns the categories associated with the joke.
|
java.lang.String |
getIconUrl()
Returns the icon url of the joke.
|
java.lang.String |
getId()
Returns the unique id of the joke.
|
java.lang.String |
getSourceUrl()
Returns the source url of the joke.
|
java.lang.String |
getValue()
Returns the actual joke.
|
int |
hashCode() |
void |
setCategories(java.util.List<java.lang.String> categories)
Sets the categories associated with the joke.
|
void |
setIconUrl(java.lang.String iconUrl)
Sets the icon url of the joke.
|
void |
setId(java.lang.String id)
Sets the unique id of the joke.
|
void |
setSourceUrl(java.lang.String sourceUrl)
Sets the source url of the joke.
|
void |
setValue(java.lang.String value)
Sets the actual joke.
|
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 joke valuepublic java.lang.String getSourceUrl()
public void setSourceUrl(java.lang.String sourceUrl)
sourceUrl - the source urlpublic java.lang.String getIconUrl()
public void setIconUrl(java.lang.String iconUrl)
iconUrl - the source urlpublic java.util.List<java.lang.String> getCategories()
public void setCategories(java.util.List<java.lang.String> categories)
categories - the categoriespublic void addCategory(java.lang.String category)
category - the categorypublic void addCategories(java.util.List<java.lang.String> categories)
categories - the categoriespublic 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