Class Image

java.lang.Object
com.apptasticsoftware.rssreader.Image

public class Image extends Object
Class representing a image in channel.
  • Constructor Details

    • Image

      public Image()
  • Method Details

    • getTitle

      public String getTitle()
      Get title that describes the image.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
      Set title that describes the image.
      Parameters:
      title - title
    • getLink

      public String getLink()
      Get the URL of the site.
      Returns:
      link
    • setLink

      public void setLink(String link)
      Set the URL of the site.
      Parameters:
      link - link
    • getUrl

      public String getUrl()
      Get the URL of a GIF, JPEG or PNG image that represents the channel.
      Returns:
      url to image
    • setUrl

      public void setUrl(String url)
      Set the URL of a GIF, JPEG or PNG image that represents the channel.
      Parameters:
      url - url to image
    • getDescription

      public Optional<String> getDescription()
      Get the description.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
      Set the description.
      Parameters:
      description - description
    • getHeight

      public Optional<Integer> getHeight()
      Get the height of the image.
      Returns:
      image height
    • setHeight

      public void setHeight(Integer height)
      Set the height of the image.
      Parameters:
      height - image height
    • getWidth

      public Optional<Integer> getWidth()
      Get the width of the image.
      Returns:
      image width
    • setWidth

      public void setWidth(Integer width)
      Set the width of the image.
      Parameters:
      width - image width
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object