Hi there,
I am new to BV but it looks very good so far. I think almost every reasonable developer has already implemented something like BV in some way but maybe a little bit smaller or less flexible.
I have no groups and no way of composing constraint-annotations.
However in my implementation I was able to annotate constraints to container types (array, collection or map) so they get applied to each element of the container:
Code:
@ConstraintNotNull
@ConstraintCollection(min=1, max=5, children={
@ConstraintNotNull
@ConstraintNumber(min=8080, max=9090)
}
private List<Integer> portRanges;
With my implementation this said that portRanges has to be a List of 1-5 Integers that are in the range [8080, 9090].
How could I express this with BV without creating a class Port that aggregates the int-value?