A multiset is a rather peculiar and unusual data structure. This is not, for example, part of the standard Java library. Guava has one, and Boost, but Boost has basically everything.
If you only want to count the number of occurrences of elements, you can resort to SortedMap from the element to count. If you want the elements to be crisp, retrievable, but equivalent in sorting rules, you could use the SortedMap from the element (no matter which one) to Set selected elements to.
Daniel C. Sobral
source share