@Override
  public void readFields(DataInput in) throws IOException {
    super.readFields(in);
    byte[] tableBytes = Bytes.readByteArray(in);
    if (tableBytes.length > 0) {
      table = TableName.valueOf(tableBytes);
    }
    if (in.readBoolean()) {
      family = Bytes.readByteArray(in);
    }
    if (in.readBoolean()) {
      qualifier = Bytes.readByteArray(in);
    }
  }
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