commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Dlug" <paul.d...@gmail.com>
Subject [Collections] Bag sorted by count
Date Wed, 07 Jun 2006 16:15:08 GMT
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).


Thanks,
Paul

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message