commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Heuer <heue...@acm.org>
Subject [collections] or [beanutils] BeanComparatorChain
Date Mon, 23 Apr 2007 00:28:31 GMT
Hello,

Might there be interest in a BeanComparatorChain, that is a Comparator
implementation that maintains an o.a.c.collections.c.ComparatorChain of
o.a.c.beanutils.BeanComparators?

class BeanComparatorChain<T> implements Comparator<T>
 BeanComparatorChain();
 BeanComparatorChain(String[]);
 BeanComparatorChain(List<String>);
 int compare(T, T);
 List<String> getProperties();
 void addProperty(String);
 void removeProperty(String);
 void moveToFront(String);
 void moveToBack(String);
 void moveForward(String);
 void moveBack(String);
 void swap(String, String);
 boolean isAscending(String);
 boolean isDescending(String);
 void setAscending(String);
 void setDescending(String);
 void toggle(String);

where the Strings are beanutils property expressions.

I am asking before submitting to JIRA, since I may need to re-license it
to do so.

Thanks,

   michael


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


Mime
View raw message