S
- The type of sourcepublic class HashedContents<S>
extends java.lang.Object
Constructor and Description |
---|
HashedContents(S source,
java.util.Map<java.lang.String,ContentInfo> contentInfo)
Store the hashes of a given source's contents.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.util.Map<java.lang.String,ContentInfo> |
getContentInfo() |
S |
getSource()
Return the source from which the contents was extracted.
|
int |
hashCode()
Return a hash code value for this object.
|
java.lang.String |
toString()
Return a human-readable version of this object.
|
public HashedContents(S source, java.util.Map<java.lang.String,ContentInfo> contentInfo)
source
- The source from which the contents was extractedcontentInfo
- The reference information and the hashes of the source's contentspublic S getSource()
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
public java.util.Map<java.lang.String,ContentInfo> getContentInfo()