lombok-pg -

lombok
Annotation Type Validate.NotEmpty


@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 -

Copyright © 2010-2011 Philipp Eichhorn, licensed under the MIT licence.