Annotation Type NotEmpty


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface NotEmpty
    An annotation that marks an options value must not be empty

    If you also need the value to be non-blank i.e. not all whitespace then use NotBlank. If you need to enforce a minimum length then use MinLength.