/** * Require that the given constraint be fulfilled on each item of the * value of this property. This is a convenient shorthand for * {@code require(constraint.toCollectionConstraint())}. * * @param constraint Constraint to impose on the items of the collection value * * @return The same builder */ public GenericCollectionPropertyBuilder<V, C> requireEach(PropertyConstraint<? super V> constraint) { return super.require(constraint.toCollectionConstraint()); }
/** * Require that the given constraint be fulfilled on each item of the * value of this property. This is a convenient shorthand for * {@code require(constraint.toCollectionConstraint())}. * * @param constraint Constraint to impose on the items of the collection value * * @return The same builder */ public GenericCollectionPropertyBuilder<V, C> requireEach(PropertyConstraint<? super V> constraint) { return super.require(constraint.toCollectionConstraint()); }