/** * Builds a new {@link ImmutableTextValidator ImmutableTextValidator}. * @return An immutable instance of TextValidator * @throws java.lang.IllegalStateException if any required attributes are missing */ public ImmutableTextValidator build() { if (initBits != 0) { throw new IllegalStateException(formatRequiredAttributesMessage()); } return new ImmutableTextValidator(validationText, name, haveToContains); }