public class ContentInfo
extends java.lang.Object
Constructor and Description |
---|
ContentInfo(java.lang.String referenceInformation,
java.util.Collection<EncodedHash> contentHashes)
Construct a new instance.
|
Modifier and Type | Method and 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.
|
public ContentInfo(java.lang.String referenceInformation, java.util.Collection<EncodedHash> contentHashes)
referenceInformation
- The identifying information of the contentcontentHashes
- Any hashes over the contentpublic java.util.Collection<EncodedHash> getContentHashes()
public java.lang.String getReferenceInformation()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The reference object with which to comparetrue
if this object is the same as the reference object; false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object