Ah. I was reading isParameterConstrained as the singular executable constrained by parameters… which makes a lot less sense now than it seemed to earlier! Another one in favour of hasConstrainedParameters() then.<br><br><br>
On Thursday, 28 February 2013, Emmanuel Bernard <<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>> wrote:<br>> hasConstrainedParameters() is better that the current situation.<br>> But then we also need to move to hasConstrainedReturnValue().<br>
><br>> <a href="https://hibernate.onjira.com/browse/BVAL-432">https://hibernate.onjira.com/browse/BVAL-432</a><br>><br>> Rich, we could not find a use case for ExecutableDescriptor hosting<br>> isExecutableConstrained() and the singular isParameterConstrained does<br>
> not work here as we are looking at the method aggregating all params<br>> for a given executable.<br>><br>> Emmanuel<br>><br>> On Thu 2013-02-28 10:06, Matt Benson wrote:<br>>> My vote is for #hasConstrainedParameters().<br>
>><br>>> Thanks,<br>>> Matt<br>>><br>>><br>>> On Thu, Feb 28, 2013 at 7:59 AM, Rich Midwinter <<a href="mailto:rich.midwinter@gmail.com">rich.midwinter@gmail.com</a>>wrote:<br>>><br>
>> > Perhaps worth mentioning we have BeanDescriptor#isBeanConstrained() too in<br>>> > 1.0. So at first glance I'd probably suggest isParameterConstrained() and<br>>> > also isExecutableConstrained().<br>
>> ><br>>> > Rich<br>>> ><br>>> ><br>>> > On Thursday, 28 February 2013, Gunnar Morling <<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>><br>>> > wrote:<br>
>> > > Hi all,<br>>> > > Hardy and I were wondering whether the method<br>>> > name ExecutableDescriptor#areParametersConstrained() is the best choice.<br>>> > > The name seems a bit unintuitive, when e.g. looking via auto-completion<br>
>> > for boolean getter methods which typically start with "is" or "has". Maybe<br>>> > > * "isParameterConstrained()" (as in "is constrained on at least one<br>>> > parameter") or<br>
>> > > * "hasConstrainedParameters()" would be better alternatives?<br>>> > ><br>>> > > The latter would also nicely match with<br>>> > BeanDescriptor#hasConstrainedExecutables().<br>
>> > > WDYT?<br>>> > > --Gunnar<br>>> > ><br>>> ><br>>> > _______________________________________________<br>>> > beanvalidation-dev mailing list<br>>> > <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
>> > <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>>> ><br>><br>>> _______________________________________________<br>
>> beanvalidation-dev mailing list<br>>> <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>>> <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
><br>> _______________________________________________<br>> beanvalidation-dev mailing list<br>> <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
>