Package migratedb.v1.core.api
Class Checksum
- java.lang.Object
-
- migratedb.v1.core.api.Checksum
-
public final class Checksum extends Object
Digest-based checksum that replaces the old Integer checksum.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChecksum.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Checksum.Builderbuilder()booleanequals(Object obj)inthashCode()static Checksumparse(String string)Parses the string value of a checksum.StringtoString()Returns Base64-encoded value of this checksum for storage in the schema history table.
-
-
-
Method Detail
-
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 theparse(String)method in order to reconstitute the checksum.
-
parse
public static Checksum parse(String string)
Parses the string value of a checksum. This method accepts the output oftoString().- Parameters:
string- String form of checksum to parse.- Returns:
- Reconstituted checksum.
-
builder
public static Checksum.Builder builder()
-
-