com.zys.mybatis.condition.ConditionKey Maven / Gradle / Ivy
package com.zys.mybatis.condition;
import java.util.Objects;
/**
* @author zys
* @version 1.0
* @date 2021/1/25 10:02
*/
public class ConditionKey {
public ConditionKey() {
}
public ConditionKey(String column, String condition) {
this.column = column;
this.condition = condition;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ConditionKey that = (ConditionKey) o;
return Objects.equals(column, that.column) &&
Objects.equals(condition, that.condition);
}
@Override
public int hashCode() {
return Objects.hash(column, condition);
}
/**
* 字段
*/
private String column;
/**
* 条件
*/
private String condition;
public void setColumn(String column) {
this.column = column;
}
public void setCondition(String condition) {
this.condition = condition;
}
public String getColumn() {
return column;
}
public String getCondition() {
return condition;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy