Package com.opentext.ia.sdk.sip
Class HashedContents<S>
- java.lang.Object
-
- com.opentext.ia.sdk.sip.HashedContents<S>
-
- Type Parameters:
S
- The type of source
public class HashedContents<S> extends java.lang.Object
Hashes of zero or more contents extracted from some source.
-
-
Constructor Summary
Constructors Constructor Description HashedContents(S source, java.util.Map<java.lang.String,ContentInfo> contentInfo)
Store the hashes of a given source's contents.
-
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.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.
-
-
-
Constructor Detail
-
HashedContents
public HashedContents(S source, java.util.Map<java.lang.String,ContentInfo> contentInfo)
Store the hashes of a given source's contents.- Parameters:
source
- The source from which the contents was extractedcontentInfo
- The reference information and the hashes of the source's contents
-
-
Method Detail
-
getSource
public S getSource()
Return the source from which the contents was extracted.- Returns:
- The source from which the contents was extracted
-
getContentInfo
public java.util.Map<java.lang.String,ContentInfo> getContentInfo()
-
hashCode
public int hashCode()
Return a hash code value for this object.- Overrides:
hashCode
in classjava.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 classjava.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 classjava.lang.Object
- Returns:
- A human-readable version of this object
-
-