@Override
  public int hashCode() {
    final int prime = 37;
    int result = super.hashCode();
    if (table != null) {
      result = prime * result + table.hashCode();
    }
    if (family != null) {
      result = prime * result + Bytes.hashCode(family);
    }
    if (qualifier != null) {
      result = prime * result + Bytes.hashCode(qualifier);
    }
    return result;
  }
Check if fields of table in table permission equals.
@param tp to be checked table permission
@return true if equals, false otherwise
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java