commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Tehrani (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COLLECTIONS-578) CollectionUtils method to accept Comparator as overloaded arguments
Date Wed, 21 Oct 2015 23:11:27 GMT
Abraham Tehrani created COLLECTIONS-578:
-------------------------------------------

             Summary: CollectionUtils method to accept Comparator as overloaded arguments
                 Key: COLLECTIONS-578
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-578
             Project: Commons Collections
          Issue Type: Improvement
    Affects Versions: 4.0
            Reporter: Abraham Tehrani
            Priority: Minor


CollectionUtils has numerous methods that would benefit from having an overloaded argument
that accepts Comparators. This is helpful when Objects in the Lists do not implement equals
the way that is wanted.

Example if CollectionUtils.containsAny(...) accepted a Comparator interface, we could then
define a custom implementation of comparison.

This would make it far more flexible



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message