Annotation Interface Regex


@Retention(RUNTIME) @Target(FIELD) public @interface Regex
When this annotation is used on a String the value will be validated using the provided regex pattern.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A regex pattern that will be used to validate the property.
  • Element Details

    • value

      String value
      A regex pattern that will be used to validate the property.
      Returns:
      The regex pattern used to validate the property.