Give me a practical use-case of Multi-set

Posted by Calm Storm on Stack Overflow See other posts from Stack Overflow or by Calm Storm
Published on 2010-03-26T15:37:38Z Indexed on 2010/03/26 15:53 UTC
Read the original article Hit count: 290

I would like to know a few practical use-cases (if they are not related/tied to any programming language it will be better).I can associate Sets, Lists and Maps to practical use cases.

For example if you wanted a glossary of a book where terms that you want are listed alphabetically and a location/page number is the value, you would use the collection TreeMap(OrderedMap which is a Map)

Somehow, I can't associate MultiSets with any "practical" usecase. Does someone know of any uses?

http://en.wikipedia.org/wiki/Multiset does not tell me enough :)

PS: If you guys think this should be community-wiki'ed it is okay. The only reason I did not do it was "There is a clear objective way to answer this question".

© Stack Overflow or respective owner

Related posts about collections

Related posts about google-collections