StatisticAttributeDto.java 2.4 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2
package pwc.taxtech.atms.dto;

3 4
import com.fasterxml.jackson.annotation.JsonProperty;

eddie.woo's avatar
eddie.woo committed
5 6 7 8
/**
 * @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\StatisticAttributeDto.cs
 */
public class StatisticAttributeDto {
9
    @JsonProperty("ID")
10
    private String id;
eddie.woo's avatar
eddie.woo committed
11 12 13 14
    private String name;
    private Boolean isActive;
    private Boolean isOrgSelfProperty;

15 16
    public String getId() {
        return id;
eddie.woo's avatar
eddie.woo committed
17 18
    }

19
    public void setId(String id) {
frank.xa.zhang's avatar
frank.xa.zhang committed
20
        this.id = id;
eddie.woo's avatar
eddie.woo committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public Boolean getIsOrgSelfProperty() {
        return isOrgSelfProperty;
    }

    public void setIsOrgSelfProperty(Boolean isOrgSelfProperty) {
        this.isOrgSelfProperty = isOrgSelfProperty;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
51
        result = prime * result + ((id == null) ? 0 : id.hashCode());
eddie.woo's avatar
eddie.woo committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
        result = prime * result + ((isActive == null) ? 0 : isActive.hashCode());
        result = prime * result + ((isOrgSelfProperty == null) ? 0 : isOrgSelfProperty.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        StatisticAttributeDto other = (StatisticAttributeDto) obj;
67 68
        if (id == null) {
            if (other.id != null)
eddie.woo's avatar
eddie.woo committed
69
                return false;
70
        } else if (!id.equals(other.id))
eddie.woo's avatar
eddie.woo committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
            return false;
        if (isActive == null) {
            if (other.isActive != null)
                return false;
        } else if (!isActive.equals(other.isActive))
            return false;
        if (isOrgSelfProperty == null) {
            if (other.isOrgSelfProperty != null)
                return false;
        } else if (!isOrgSelfProperty.equals(other.isOrgSelfProperty))
            return false;
        if (name == null) {
            if (other.name != null)
                return false;
        } else if (!name.equals(other.name))
            return false;
        return true;
    }
89

eddie.woo's avatar
eddie.woo committed
90 91

}