Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.dropwizard.validation;
 
 
 import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

Validates a bean predicate method as returning true. Bean predicates must be of the form isSomething or they'll be silently ignored.
@Constraint(validatedBy = MethodValidator.class)
public @interface ValidationMethod {
    String message() default "is not valid";
    Class<?>[] groups() default {};
    @SuppressWarnings("UnusedDeclaration"Class<? extends Payload>[] payload() default { };
New to GrepCode? Check out our FAQ X