The notorious {{List<@Email @NotNull String> emails;}} should be become reality now.
But there are some other possibilities, too:
{code} Optional<@Email String> optionalEmail; {code}
{code} public class Emails implements Iterable<@NotNull @Email String> { // ... } {code}
{code} public class Tuple<@NotNull V1, @NotNull V2> { void setValue1(V1 v1); V1 getValue1();
void setValue2(V2 v2); V2 getValue2(); } {code}
|