liquibase.diff.StringDiff Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.diff;
public class StringDiff {
private String baseVersion;
private String targetVersion;
public StringDiff(String baseVersion, String targetVersion) {
this.baseVersion = baseVersion;
this.targetVersion = targetVersion;
}
public String getReferenceVersion() {
return baseVersion;
}
public String getTargetVersion() {
return targetVersion;
}
public boolean areEqual() {
if (baseVersion == null) {
return targetVersion == null;
}
return baseVersion.equals(targetVersion);
}
}