Annotation Type NotEmpty


@Retention(CLASS) @Target({FIELD,PARAMETER}) public @interface NotEmpty
A CharSequence, collection, map or array that must hold at least one element. Null is a violation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The message reported for the field; empty for the default.
  • Element Details

    • message

      String message
      The message reported for the field; empty for the default.
      Default:
      ""