public boolean matches(State... expected) {
      for (State state : expected) {
        if (this == state) {
          return true;
        }
      }
      return false;
    }
State of a Region while undergoing transitions. This class is immutable.
hbase-client/src/main/java/org/apache/hadoop/hbase/master/RegionState.java