|
lombok-pg - | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||
@Target(value=PARAMETER) @Retention(value=SOURCE) public static @interface Validate.NotEmpty
Triggers an empty check for the annotated parameter by invoking the isEmpty method of the parameter type.
So this works with Strings and Collections out of the box.
This annotation also triggers a null-check before the empty check.
|
lombok-pg - | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||