commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: [Collections] TransformingComparator
Date Sat, 08 Jun 2002 06:47:41 GMT
Hi Jonathan

Nice idea! I've committed it to CVS in the 'comparators' package. Maybe the
code could be refactored into a new ComparatorUtils later on.

From: "Jonathan Carlson" <>
> I also have a generic ReflectingTransformer that I wrote,
> which, when coupled with the attached
> TransformingComparator will allow you to dynamically sort a
> collection based on any getter.  However, it uses a generic
> ReflectionHelper that wouldn't fit within the Collections
> framework (I don't know where it would go).  But if anyone
> is interested in that code too, I'd be happy to share it.

Some kind of PropertyTransformer that used beanutils to extract properties
from a bean, supporting beans, DynaBeans, mapped & indexed properties etc
would be really cool. To avoid circular dependencies adding this to
beanutils might make more sense.


Do You Yahoo!?
Get your free address at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message