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/10 21:58:54 UTC
[jira] Commented: (LANG-470) Add containsAll methods to ArrayUtils
[ https://issues.apache.org/jira/browse/LANG-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798543#action_12798543 ]
Henri Yandell commented on LANG-470:
------------------------------------
The reason (along with LANG-238) is that reimplementing all of the Set /Collection interface as Array methods is not the best use of ArrayUtils.
Having a way to get to the Set API might be desirable - options would seem to be:
* An asSet method that returns a HashSet using the above (with null protection).
* An asSet method that returns an ArraySet (might be value in this).
* Additionally a null protected asList could be added to handle your NPE comment and would be reused if the HashSet option is chosen.
> Add containsAll methods to ArrayUtils
> -------------------------------------
>
> Key: LANG-470
> URL: https://issues.apache.org/jira/browse/LANG-470
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Affects Versions: 2.4
> Reporter: Maarten Coene
> Fix For: 3.0
>
> Attachments: ArrayUtilsContainsAll.pat
>
>
> The ArrayUtils class contains several "contains" methods.
> It could be usefull to add the corresponding containsAll(Object[] array1, Object[] array2) methods (and corresponding for primitive types).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.