You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValidatorBuilder.<Parent>of()
// constraints for parent
.constraint(...)
.constraint(...)
.constraintOnCondition(
isInstanceOf(Child.class), b -> b
.nest(Child.class::cast, "(CHILD)", b2 -> b2// constraints for child
.constraint(...)
.constraint(...)
.constraint(...)
)
)
publicstatic <T, AextendsT> ConstraintCondition<T> isInstanceOf(Class<A> aClass) {
return (target, ctx) -> target.getClass() == aClass;
}
It would be good to have something like:
ValidatorBuilder.<Parent>of()
// constraints for parent
.constraint(...)
.constraint(...)
.constraintOnClass(Child.class), b -> b
// constraints for child
.constraint(...)
.constraint(...)
.constraint(...)
)
)
Best Regards!!!!
The text was updated successfully, but these errors were encountered:
Now I treat inheritance as follows:
It would be good to have something like:
Best Regards!!!!
The text was updated successfully, but these errors were encountered: