Class Checksum


  • public final class Checksum
    extends Object
    Digest-based checksum that replaces the old Integer checksum.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns Base64-encoded value of this checksum for storage in the schema history table. The output of this method can be passed to the parse(String) method in order to reconstitute the checksum.
        Overrides:
        toString in class Object
        Returns:
        This checksum as a Base64-String.
      • parse

        public static Checksum parse​(String string)
        Parses the string value of a checksum. This method accepts the output of toString().
        Parameters:
        string - String form of checksum to parse.
        Returns:
        Reconstituted checksum.