Re: [Collections] TransformingComparator

2002-06-08 Thread James Strachan
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 [EMAIL PROTECTED] I also have a generic ReflectingTransformer that I wrote, which, when coupled with the attached

[Collections] TransformingComparator

2002-06-07 Thread Jonathan Carlson
I have attached a very simple, but powerful TransformingComparator that I wrote. It would go well in the Collections framework. It decorates another Comparator with behavior from any Transformer. That is, the return value from the #transform method will be passed to the #compare method on the