@Override
  public int hashCode() {
    final int prime = 37;
    int result = 23;
    for (Action a : actions) {
      result = prime * result + a.code();
    }
    result = prime * result + scope.code();
    return result;
  }
Check if two permission equals regardless of actions. It is useful when merging a new
permission with an existed permission which needs to check two permissions's fields.
@param obj instance
@return true if equals, false otherwise
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/Permission.java