Annotation Type CodePointLength


@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) public @interface CodePointLength
Validate that the code point length of a character sequence is between min and max included.

It is possible to validate a normalized value by setting the normalization strategy.

Version:
6.0.3
Author:
Kazuki Shimizu
  • Element Details

    • min

      int min
      Default:
      0
    • max

      int max
      Default:
      2147483647
    • normalizationStrategy

      Default:
      NONE
    • message

      String message
      Default:
      "{org.hibernate.validator.constraints.CodePointLength.message}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Default:
      {}