|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.change.CheckSum
public class CheckSum
CheckSums are used by liquibase to determine if a Change has been modified since it was originally ran.
CheckSums can be computed on either a String or an InputStream
.
The CheckSum contains a version number which can be used to determine whether the algorithm for computing a checksum has changed
since the last time it was computed. If the algorithm changes, we cannot rely on the checksum value.
Method Summary | |
---|---|
static CheckSum |
compute(InputStream stream,
boolean standardizeLineEndings)
Compute a checksum of the given data stream. |
static CheckSum |
compute(String valueToChecksum)
Compute a checksum of the given string. |
boolean |
equals(Object obj)
|
static int |
getCurrentVersion()
Return the current CheckSum algorithm version. |
int |
getVersion()
Return the Checksum Algorithm version for this CheckSum |
int |
hashCode()
|
static CheckSum |
parse(String checksumValue)
Parse the given checksum string value into a CheckSum object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CheckSum parse(String checksumValue)
public static int getCurrentVersion()
public static CheckSum compute(String valueToChecksum)
public static CheckSum compute(InputStream stream, boolean standardizeLineEndings)
public String toString()
toString
in class Object
public int getVersion()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |