commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject Re: [Collections] Bag sorted by count
Date Wed, 07 Jun 2006 21:45:04 GMT
Paul Dlug wrote:
> Hopefully a simple question...
> 
> Is there an implementation of Bag that returns its elements sorted by their
> count? I can't seem to find an elegant way to implement this (it seems like
> the comparator would need a reference to the Bag it is comparing elements
> for to do this with a TreeBag).

We have no such implementation. Its not a bad idea though.

Stephen

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


Mime
View raw message