public class ChecksumValueImpl extends ChecksumValue
| Constructor and Description |
|---|
ChecksumValueImpl(ChecksumAlgorithm algorithm,
long offset,
java.lang.String value) |
ChecksumValueImpl(java.lang.String headerValue)
Constructs a new checksum value from a header string of the format
{algorithm}/[{offset}/]{value},
where the offset may or may not be present. |
| Modifier and Type | Method and Description |
|---|---|
ChecksumAlgorithm |
getAlgorithm() |
long |
getOffset() |
java.lang.String |
getValue() |
equals, hashCode, toString, toStringpublic ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, java.lang.String value)
public ChecksumValueImpl(java.lang.String headerValue)
{algorithm}/[{offset}/]{value},
where the offset may or may not be present.public ChecksumAlgorithm getAlgorithm()
getAlgorithm in class ChecksumValuepublic long getOffset()
getOffset in class ChecksumValuepublic java.lang.String getValue()
getValue in class ChecksumValue