All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.choonchernlim.springbootmail.core.EmailCollection.groovy Maven / Gradle / Ivy

The newest version!
package com.github.choonchernlim.springbootmail.core

import javax.validation.Constraint
import javax.validation.Payload
import java.lang.annotation.*

/**
 * Annotation for validating a collection of emails.
 */
@Target([ElementType.FIELD, ElementType.PARAMETER])
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = EmailCollectionValidator)
@Documented
@interface EmailCollection {
    String message() default 'some values do not have well-formed email addresses'

    Class[] groups() default []

    Class[] payload() default []
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy