Niclas Hedhman a écrit :
> The value in the annotation is solved by field/constructor injection and is
> not an issue (I think).
It should do it.
It should also be noted that such a Predicate then cannot be written as
a lambda.


I now disgress but I'd like to add annotation support for logic
combination of constraints. Something like:

void someMethod( @Or({ @Range(1,4), @Min( 8 ) }) Integer something );

Providing @Or, @And should not be too much work.
What do you guys think about this?

/Paul

Reply via email to