@Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null) {
        return false;
      }
      if (getClass() != obj.getClass()) {
        return false;
      }
      RangerPolicyItem other = (RangerPolicyItem) obj;
      if (accesses == null) {
        if (other.accesses != null) {
          return false;
        }
      } else if (!accesses.equals(other.accesses)) {
        return false;
      }
      if (conditions == null) {
        if (other.conditions != null) {
          return false;
        }
      } else if (!conditions.equals(other.conditions)) {
        return false;
      }
      if (delegateAdmin == null) {
        if (other.delegateAdmin != null) {
          return false;
        }
      } else if (!delegateAdmin.equals(other.delegateAdmin)) {
        return false;
      }
      if (groups == null) {
        if (other.groups != null) {
          return false;
        }
      } else if (!groups.equals(other.groups)) {
        return false;
      }
      if (users == null) {
        if (other.users != null) {
          return false;
        }
      } else if (!users.equals(other.users)) {
        return false;
      }
      return true;

    }
@param delegateAdmin the delegateAdmin to set
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicy.java