Skip to content

Instantly share code, notes, and snippets.

View cleopatra27's full-sized avatar
🎯
Focusing

cleopatra douglas cleopatra27

🎯
Focusing
View GitHub Profile
@robinraju
robinraju / ValidCurrencyCode.java
Created June 15, 2016 07:22
Java Annotation for validating ISO country code in the given string
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;