Class 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 Detail

      • ChecksumValue

        public ChecksumValue()
    • Method Detail

      • 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 use getHexValue() instead
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object