You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Michael Heuer <he...@acm.org> on 2007/04/23 02:28:31 UTC

[collections] or [beanutils] BeanComparatorChain

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