private String stateToString(int stateInt) {
    String stateDesc = null;
    switch (stateInt) {
      case INITIALIZING:
        stateDesc = "INITIALIZING";
        break;
      case READY:
        stateDesc = "READY";
        break;
      case DESTROYED:
        stateDesc = "DESTROYED";
        break;
      default:
        stateDesc = null;
        break;
    }
    if (stateDesc == null) {
      throw new IllegalArgumentException(String.format("Unknown state for grantor: %s",
          state));
    }
    return stateDesc;
  }
Returns string representation for the enumerated grantor state.

@param stateInt the number of the state to return a string for
@return string representation for the enumerated grantor state
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java