commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject [collections] PATCH: Add CollectionContainsPredicate...
Date Mon, 07 Mar 2005 20:16:56 GMT
All,

This patch adds a class called CollectionContainsPredicate to the functors
package and adds a method to PredicateUtils for constructing one.  A
CollectionContains predicate takes a Collection in its constructor and
returns true if the input object is in the collection.  I thought this might
be a nice addition.  I couldn't find anything like this in the API, so I had
to write it today for something I was doing at work. 

James

Mime
View raw message