commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Collections][SUBMIT] PredicateUtils [was TypedList]
Date Thu, 02 May 2002 06:17:17 GMT
Hi Stephen

I've given the code a quick once-over and it looks great. Nice and clean.
I've added into CVS - if anyone has any objections please speak up.

Some JUnit test cases would be nice for this stuff ;-)

James
----- Original Message -----
From: "Stephen Colebourne" <scolebourne@eurobell.co.uk>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Sent: Wednesday, May 01, 2002 11:38 PM
Subject: [Collections][SUBMIT] PredicateUtils [was TypedList]


> Hi all,
> Please find attached PredicateUtils.
>
> PredicateUtils is a single class that provides predicate (validating)
> implementations of all java and commons collections:
> Collection
> List
> Set, SortedSet
> Map, SortedMap
> Bag, SortedBag
>
> It also provides useful predicate classes:
> True
> False
> And
> Or
> Not
> instanceof
>
> To avoid polluting the commons package with the 18 classes necessary to
> achieve this, they are all implemented as static nested classes within
> PredicateUtils. This is similar to how synchronized and unmodifiable
> collections work in java.util.Collections. All the classes are created and
> used by static factory methods, except True and False which are constants.
>
> Feedback welcome on the implementation, and indications of acceptability
for
> actual inclusion in commons.
>
> Stephen
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message