org.zodiac.seata.config.SeataConfigInfo Maven / Gradle / Ivy
package org.zodiac.seata.config;
import java.util.Objects;
public class SeataConfigInfo {
private boolean enabled = false;
private boolean autoProxy = false;
public SeataConfigInfo() {
}
public boolean isEnabled() {
return enabled;
}
public SeataConfigInfo setEnabled(boolean enabled) {
this.enabled = enabled;
return this;
}
public boolean isAutoProxy() {
return autoProxy;
}
public SeataConfigInfo setAutoProxy(boolean autoProxy) {
this.autoProxy = autoProxy;
return this;
}
@Override
public int hashCode() {
return Objects.hash(autoProxy);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
SeataConfigInfo other = (SeataConfigInfo)obj;
return autoProxy == other.autoProxy;
}
@Override
public String toString() {
return "SeataConfigInfo [autoProxy=" + autoProxy + "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy