lombok-pg -

lombok
Annotation Type Validate.With


@Target(value=PARAMETER)
@Retention(value=SOURCE)
public static @interface Validate.With

Specify a custom validation method.

This annotation also triggers a null-check before the custom validation.

Note: This works with all types, but the parameter type has to match the method signature.


Required Element Summary
 String value
          Name of method that should be used to validate the parameter.
 

Element Detail

value

public abstract String value
Name of method that should be used to validate the parameter.


lombok-pg -

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