Original issue created by kevinb@google.com on 2013-05-24 at 07:29 PM
I almost recommended on Stack Overflow finding the most frequently occurring element in a multiset using
Multisets.copyHighestCountFirst(theMultiset).asList().get(0)
If I read the code right this would have spectacularly bad performance, risking an OutOfMemoryException even. (Sorry, no time to verify this yet, jotting this here before I forget it.)
Original issue created by kevinb@google.com on 2013-05-24 at 07:29 PM
I almost recommended on Stack Overflow finding the most frequently occurring element in a multiset using
Multisets.copyHighestCountFirst(theMultiset).asList().get(0)
If I read the code right this would have spectacularly bad performance, risking an OutOfMemoryException even. (Sorry, no time to verify this yet, jotting this here before I forget it.)