commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne (JIRA)" <>
Subject [jira] Commented: (LANG-238) [lang] Add equals(type[]) to NumberUtils
Date Mon, 01 Jan 2007 11:55:27 GMT


Stephen Colebourne commented on LANG-238:

This newly defined method seems a little unusual - is it really a generic use case? How often
do you need to test that all elements in an array are the same?

A more general related method might be:
containsOnly(arrayToTest, arrayOfPermittedValues)

> [lang] Add equals(type[]) to NumberUtils
> ----------------------------------------
>                 Key: LANG-238
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.0
> It would be useful to add an equals() method like the current min and max
> methods which take an array type and determine if all the values are equal.
> I have found myself in need of this often. I have to retrieve objects from
> multiple data sources in parallel to build an array of complex object. To ensure
> validity, I always compare that my sub-retrievals returned the same number of
> objects as expected.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message