Package org.jclouds.glacier.util
Class TreeHash
java.lang.Object
org.jclouds.glacier.util.TreeHash
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.hash.HashCode
buildTreeHashFromMap
(Map<Integer, com.google.common.hash.HashCode> map) Builds a TreeHash based on a map of hashed chunks.static TreeHash
buildTreeHashFromPayload
(Payload payload) Builds the Hash and the TreeHash values of the payload.boolean
com.google.common.hash.HashCode
com.google.common.hash.HashCode
int
hashCode()
toString()
-
Method Details
-
getLinearHash
public com.google.common.hash.HashCode getLinearHash() -
getTreeHash
public com.google.common.hash.HashCode getTreeHash() -
hashCode
public int hashCode() -
equals
-
toString
-
buildTreeHashFromPayload
Builds the Hash and the TreeHash values of the payload.- Returns:
- The calculated TreeHash.
- Throws:
IOException
- See Also:
-
buildTreeHashFromMap
public static com.google.common.hash.HashCode buildTreeHashFromMap(Map<Integer, com.google.common.hash.HashCode> map) Builds a TreeHash based on a map of hashed chunks.- Returns:
- The calculated TreeHash.
- See Also:
-