@Target(value=PARAMETER)
@Retention(value=SOURCE)
public static @interface Validate.NotEmpty
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.