- java.lang.Object
-
- com.apptasticsoftware.rssreader.Image
-
public class Image extends java.lang.ObjectClass representing a image in channel.
-
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>getDescription()Get the description.java.util.Optional<java.lang.Integer>getHeight()Get the height of the image.java.lang.StringgetLink()Get the URL of the site.java.lang.StringgetTitle()Get title that describes the image.java.lang.StringgetUrl()Get the URL of a GIF, JPEG or PNG image that represents the channel.java.util.Optional<java.lang.Integer>getWidth()Get the width of the image.inthashCode()voidsetDescription(java.lang.String description)Set the description.voidsetHeight(java.lang.Integer height)Set the height of the image.voidsetLink(java.lang.String link)Set the URL of the site.voidsetTitle(java.lang.String title)Set title that describes the image.voidsetUrl(java.lang.String url)Set the URL of a GIF, JPEG or PNG image that represents the channel.voidsetWidth(java.lang.Integer width)Set the width of the image.
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Get title that describes the image.- Returns:
- title
-
setTitle
public void setTitle(java.lang.String title)
Set title that describes the image.- Parameters:
title- title
-
getLink
public java.lang.String getLink()
Get the URL of the site.- Returns:
- link
-
setLink
public void setLink(java.lang.String link)
Set the URL of the site.- Parameters:
link- link
-
getUrl
public java.lang.String getUrl()
Get the URL of a GIF, JPEG or PNG image that represents the channel.- Returns:
- url to image
-
setUrl
public void setUrl(java.lang.String url)
Set the URL of a GIF, JPEG or PNG image that represents the channel.- Parameters:
url- url to image
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
Get the description.- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description)
Set the description.- Parameters:
description- description
-
getHeight
public java.util.Optional<java.lang.Integer> getHeight()
Get the height of the image.- Returns:
- image height
-
setHeight
public void setHeight(java.lang.Integer height)
Set the height of the image.- Parameters:
height- image height
-
getWidth
public java.util.Optional<java.lang.Integer> getWidth()
Get the width of the image.- Returns:
- image width
-
setWidth
public void setWidth(java.lang.Integer width)
Set the width of the image.- Parameters:
width- image width
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-