protected static void checkLengthHardLimit(int length) {
    if (!isCorrectLength(length)) {
      throw new IllegalArgumentException("length(=" + length + ") must be in [0, " + MAX_CAPACITY + "]");
    }
  }
protected static void checkLengthHardLimit(int length)