java.lang.Object
com.apptasticsoftware.rssreader.Enclosure

public class Enclosure extends Object
Class representing the Enclosure.
  • Constructor Details

    • Enclosure

      public Enclosure()
  • Method Details

    • getUrl

      public String getUrl()
      Get the URL of enclosure.
      Returns:
      url
    • setUrl

      public void setUrl(String url)
      Set the URL of the enclosure.
      Parameters:
      url - URL
    • getType

      public String getType()
      Get the type of enclosure.
      Returns:
      type
    • setType

      public void setType(String type)
      Set the type of the enclosure.
      Parameters:
      type - type
    • getLength

      public Optional<Long> getLength()
      Get the length of enclosure.
      Returns:
      length
    • setLength

      public void setLength(Long length)
      Set the length of the enclosure.
      Parameters:
      length - length
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object