Package com.emc.object.util
Class ChecksumValue
- java.lang.Object
-
- com.emc.object.util.ChecksumValue
-
- Direct Known Subclasses:
ChecksumValueImpl
,RunningChecksum
public abstract class ChecksumValue extends java.lang.Object
Represents a checksum value. Can yield the algorithm, offset (if applicable) and hex-value of the sum.
-
-
Constructor Summary
Constructors Constructor Description ChecksumValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
abstract ChecksumAlgorithm
getAlgorithm()
abstract byte[]
getByteValue()
abstract java.lang.String
getHexValue()
abstract long
getOffset()
java.lang.String
getValue()
Deprecated.Please usegetHexValue()
insteadint
hashCode()
java.lang.String
toString()
java.lang.String
toString(boolean includeByteCount)
Outputs this checksum in the format{algorithm}/[{offset}/]{value}
, where the offset may or may not be present.
-
-
-
Method Detail
-
getAlgorithm
public abstract ChecksumAlgorithm getAlgorithm()
-
getOffset
public abstract long getOffset()
-
getByteValue
public abstract byte[] getByteValue()
-
getHexValue
public abstract java.lang.String getHexValue()
-
getValue
@Deprecated public java.lang.String getValue()
Deprecated.Please usegetHexValue()
instead
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean includeByteCount)
Outputs this checksum in the format{algorithm}/[{offset}/]{value}
, where the offset may or may not be present.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-