commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Noel Rouvignac (JIRA)" <j...@apache.org>
Subject [jira] Created: (COLLECTIONS-362) Add CollectionUtils.filter() should return a boolean indicating whether the Collection was modified as a result of the call.
Date Fri, 27 Aug 2010 15:37:53 GMT
Add CollectionUtils.filter() should return a boolean indicating whether the Collection was
modified as a result of the call.
----------------------------------------------------------------------------------------------------------------------------

                 Key: COLLECTIONS-362
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-362
             Project: Commons Collections
          Issue Type: Wish
          Components: Collection
    Affects Versions: 3.2
            Reporter: Jean-Noel Rouvignac
            Priority: Minor


Here is what I mean:

- test 1:
List l = new ArrayList();
l.add("test");

assertTrue( CollectionUtils.filter(l, FalsePredicate.getInstance()) );
assertTrue(l.isEmpty());

- test 2:
List l = new ArrayList();
l.add("test");

assertFalse( CollectionUtils.filter(l, TruePredicate.getInstance()) );
assertEquals(1, l.size());


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message