@Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null) {
        return false;
      }
      if (getClass() != obj.getClass()) {
        return false;
      }
      RangerPolicyItemAccess other = (RangerPolicyItemAccess) obj;
      if (isAllowed == null) {
        if (other.isAllowed != null) {
          return false;
        }
      } else if (!isAllowed.equals(other.isAllowed)) {
        return false;
      }
      if (type == null) {
        if (other.type != null) {
          return false;
        }
      } else if (!type.equals(other.type)) {
        return false;
      }
      return true;
    }
@param isAllowed the isAllowed to set
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicy.java