public boolean equals()

in agents-common/src/main/java/org/apache/ranger/plugin/model/RangerServiceDef.java [1280:1381]


        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null) {
                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            RangerServiceConfigDef other = (RangerServiceConfigDef) obj;
            if (defaultValue == null) {
                if (other.defaultValue != null) {
                    return false;
                }
            } else if (!defaultValue.equals(other.defaultValue)) {
                return false;
            }
            if (description == null) {
                if (other.description != null) {
                    return false;
                }
            } else if (!description.equals(other.description)) {
                return false;
            }
            if (label == null) {
                if (other.label != null) {
                    return false;
                }
            } else if (!label.equals(other.label)) {
                return false;
            }
            if (mandatory == null) {
                if (other.mandatory != null) {
                    return false;
                }
            } else if (!mandatory.equals(other.mandatory)) {
                return false;
            }
            if (name == null) {
                if (other.name != null) {
                    return false;
                }
            } else if (!name.equals(other.name)) {
                return false;
            }
            if (rbKeyDescription == null) {
                if (other.rbKeyDescription != null) {
                    return false;
                }
            } else if (!rbKeyDescription.equals(other.rbKeyDescription)) {
                return false;
            }
            if (rbKeyLabel == null) {
                if (other.rbKeyLabel != null) {
                    return false;
                }
            } else if (!rbKeyLabel.equals(other.rbKeyLabel)) {
                return false;
            }
            if (rbKeyValidationMessage == null) {
                if (other.rbKeyValidationMessage != null) {
                    return false;
                }
            } else if (!rbKeyValidationMessage
                    .equals(other.rbKeyValidationMessage)) {
                return false;
            }
            if (subType == null) {
                if (other.subType != null) {
                    return false;
                }
            } else if (!subType.equals(other.subType)) {
                return false;
            }
            if (type == null) {
                if (other.type != null) {
                    return false;
                }
            } else if (!type.equals(other.type)) {
                return false;
            }
            if (uiHint == null) {
                if (other.uiHint != null) {
                    return false;
                }
            } else if (!uiHint.equals(other.uiHint)) {
                return false;
            }
            if (validationMessage == null) {
                if (other.validationMessage != null) {
                    return false;
                }
            } else if (!validationMessage.equals(other.validationMessage)) {
                return false;
            }
            if (validationRegEx == null) {
                return other.validationRegEx == null;
            } else {
                return validationRegEx.equals(other.validationRegEx);
            }
        }