Package com.helger.commons.annotation
Annotation Type Nonempty
@Retention(CLASS)
@Target({FIELD,PARAMETER,LOCAL_VARIABLE,METHOD})
@Documented
public @interface Nonempty
A specialization of the
This means that the usage of this annotation implies the usage of the
Nonnull annotation that is
to be used for String and collection parameters as well as return values
only. It indicates that a string may neither be null nor empty (
"") or that a collection may neither be null nor
empty).This means that the usage of this annotation implies the usage of the
Nonnull annotation but because of better FindBugs
handling, the Nonnull annotation must be present as
well.- Author:
- Philip Helger
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value- Default:
""
-