Class ContentInfo


  • public class ContentInfo
    extends java.lang.Object
    A reference information and its related hashes, if any.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentInfo​(java.lang.String referenceInformation, java.util.Collection<EncodedHash> contentHashes)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Indicates whether some other object is "equal to" this one.
      java.util.Collection<EncodedHash> getContentHashes()
      Return the hashes of the contents extracted from the source.
      java.lang.String getReferenceInformation()  
      int hashCode()
      Return a hash code value for this object.
      java.lang.String toString()
      Return a human-readable version of this object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContentInfo

        public ContentInfo​(java.lang.String referenceInformation,
                           java.util.Collection<EncodedHash> contentHashes)
        Construct a new instance.
        Parameters:
        referenceInformation - The identifying information of the content
        contentHashes - Any hashes over the content
    • Method Detail

      • getContentHashes

        public java.util.Collection<EncodedHash> getContentHashes()
        Return the hashes of the contents extracted from the source.
        Returns:
        The hashes of the contents extracted from the source
      • getReferenceInformation

        public java.lang.String getReferenceInformation()
      • hashCode

        public int hashCode()
        Return a hash code value for this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code value for this object
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The reference object with which to compare
        Returns:
        true if this object is the same as the reference object; false otherwise
      • toString

        public java.lang.String toString()
        Return a human-readable version of this object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A human-readable version of this object