All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.seata.config.SeataConfigInfo Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
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