Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 435595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:23:31+00:00 2026-05-12T20:23:31+00:00

Google Collections contains the Multiset interface and the TreeMultiset class, but I was surprised

  • 0

Google Collections contains the Multiset interface and the TreeMultiset class, but I was surprised to find that there is no corresponding SortedMultiset interface.

Something like that would be very useful for modelling discrete probability distributions.

Before I attempt to implement it myself, I would like to know if there is a specific reason for leaving it out, e.g. likely violation of Multiset or Collection invariants, or inherent performance problems etc.


Edit: I didn’t realise it originally but this is actually 3 separate requests:

  1. A change to the return type of one method (TreeMultiset.entrySet)
  2. An new interface to match the existing functionality of TreeMultiset
  3. A new pair of methods to sum the counts in branches of the tree
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:23:31+00:00Added an answer on May 12, 2026 at 8:23 pm

    I think it’s just that no one’s ever needed it yet, so we haven’t written it yet. It’s something I’d consider.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anybody used TreeMultimap in Google Collections? I understand that with a TreeMultimap, its
I wonder what is the most useful class in the Google collections framework ?
A Google Collections Multiset is a set of elements each of which has a
Is there a method (maybe with Google Collections) to obtain the min value of
I was using com.google.common.collect.PrimitiveArrays from Google Collections, however I cannot find it in Guava,
Big applications contains lots of objects that are somehow connected to each other. There
In Google App Engine, there is such a thing as a ListProperty that allows
Why google-collections or guava contains semantically equal functions? example: static <T> Predicate<T> and(Predicate<? super
I've been looking on google but not finding anything that does the trick for
I am looking for the opposite of map joiner in google collections. is there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.