code: public final void setMaxNumberOfCharacters(final int maxNumberOfCharacters) {
          if (maxNumberOfCharacters != -1) {
              Condition.INSTANCE.ensureAtLeast(maxNumberOfCharacters, 1,
                      "The maximum number of characters must be at least 1");
          }
  
          this.maxNumberOfCharacters = maxNumberOfCharacters;
          adaptMaxNumberOfCharactersMessage();
      }
docs: Sets the maximum number of characters, the edit text should be allowed to contain.
  
  @param maxNumberOfCharacters
  The maximum number of characters, which should be set, as an {@link Integer} value.
  The maximum number of characters must be at least 1 or -1, if the number of
  characters should not be restricted