I know that if I want validate String as a number with length 6 I can write following:
@Pattern(regexp="[\\d]{6}"
String stringToValidate;
But what should I do If I have List<String> stringsToValidate
?
Is there way to reuse out of the box mechanism?
P.S.
I know that I can write own annotation and implement own validator but I want to reuse out of the box functionality.