Class Enclosure

    • Constructor Detail

      • Enclosure

        public Enclosure()
    • Method Detail

      • equals

        public boolean equals​(Object other)
        Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

        Overrides:
        equals in class Object
        Parameters:
        other - he reference object with which to compare.
        Returns:
        true if 'this' object is equal to the 'other' object.
      • hashCode

        public int hashCode()
        Returns a hashcode value for the object.

        It follows the contract defined by the Object hashCode() method.

        Overrides:
        hashCode in class Object
        Returns:
        the hashcode of the bean object.
      • toString

        public String toString()
        Returns the String representation for the object.

        Overrides:
        toString in class Object
        Returns:
        String representation for the object.
      • getUrl

        public String getUrl()
        Returns the enclosure URL.

        Returns:
        the enclosure URL, null if none.
      • setUrl

        public void setUrl​(String url)
        Sets the enclosure URL.

        Parameters:
        url - the enclosure URL to set, null if none.
      • getLength

        public long getLength()
        Returns the enclosure length.

        Returns:
        the enclosure length, 0 if none.
      • setLength

        public void setLength​(long length)
        Sets the enclosure length.

        Parameters:
        length - the enclosure length to set, 0 if none.
      • getType

        public String getType()
        Returns the enclosure type.

        Returns:
        the enclosure type, null if none.
      • setType

        public void setType​(String type)
        Sets the enclosure type.

        Parameters:
        type - the enclosure type to set, null if none.