liquibase.command.CommandArgument 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.command;
import java.util.Objects;
/**
* @deprecated Used by the old {@link LiquibaseCommand} style of command setup.
*/
public class CommandArgument implements Comparable {
private String name;
private String description;
private Class dataType;
private boolean required;
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public Class getDataType() {
return dataType;
}
public boolean isRequired() {
return required;
}
@Override
public int compareTo(Object o) {
return this.getName().compareTo(((CommandArgument) o).getName());
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CommandArgument that = (CommandArgument) o;
return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
return Objects.hash(name);
}
}