Annotation Interface NotContain


@Retention(RUNTIME) @Target(FIELD) public @interface NotContain
The annotated element must not contain the specified values.

Supported types are:

  • STRING
  • SET_OF_STRING
  • LIST_OF_STRING
  • MAP_STRING_STRING

null elements are considered valid.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Field Details

  • Element Details

    • message

      String message
      Default:
      "The property must not contain %s."
    • value

      String[] value
      Default:
      {}