Annotation Interface Contain


@Retention(RUNTIME) @Target(FIELD) public @interface Contain
The annotated element must 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 contain %s."
    • value

      String[] value
      Default:
      {}