commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-668) CollectionUtils Contains Any Method for Primitive Array
Date Sun, 31 Dec 2017 06:20:00 GMT

    [ https://issues.apache.org/jira/browse/COLLECTIONS-668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307101#comment-16307101
] 

Gary Gregory commented on COLLECTIONS-668:
------------------------------------------

Could this encourage bad practices as opposed to sorting and binary searching using Collections.sort()
and binarySearch()?



> CollectionUtils Contains Any Method for Primitive Array
> -------------------------------------------------------
>
>                 Key: COLLECTIONS-668
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-668
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>    Affects Versions: 4.2
>            Reporter: BELUGA BEHR
>            Priority: Minor
>
> Nice to add a CollectionUtils#containsAny which takes a Collection and a primitive array
as an option.  Loop through every array item and check for existence within the Collection.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message