@Override
  public int hashCode() {
    int result = (tableName != null ? tableName.hashCode() : 0);
    result = 31 * result + (state != null ? state.hashCode() : 0);
    return result;
  }
Static version of state checker
@param target equals to any of
@return true if satisfies
hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableState.java