@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof TableState)) {
      return false;
    }
    TableState that = (TableState) o;
    if (state != that.state) {
      return false;
    }
    if (tableName != null ? !tableName.equals(that.tableName) : that.tableName != null) {
      return false;
    }
    return true;
  }
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