You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/01/09 11:29:54 UTC
[jira] Closed: (LANG-238) [lang] Add equals(type[]) to NumberUtils
[ https://issues.apache.org/jira/browse/LANG-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed LANG-238.
------------------------------
Resolution: Won't Fix
Closing as WONTFIX.
I think the answer of building this on new HashSet(Collections.asList(..)) is the right one. I don't see any value in an ArraySet over a HashSet, and I think a toSet method that was based on HashSet wouldn't offer much.
Other ideas should go to SetUtils in Collections.
> [lang] Add equals(type[]) to NumberUtils
> ----------------------------------------
>
> Key: LANG-238
> URL: https://issues.apache.org/jira/browse/LANG-238
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.math.*
> 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.
-
You can reply to this email to add a comment to the issue online.