Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multimap with navigable keys and arbitrary semantic. #2502

Open
JackieKu opened this issue Jun 13, 2016 · 1 comment
Open

Multimap with navigable keys and arbitrary semantic. #2502

JackieKu opened this issue Jun 13, 2016 · 1 comment

Comments

@JackieKu
Copy link

  • TreeMultimap supports navigable keys but the semantic of values are limited to SortedSet.
  • MultimapBuilder.treeKeys().arrayListValues() is not navigable.

This is too restrictive for many usages requiring navigable keys. In our case the values are simply not sortable, could be duplicated, but the insertion order should be maintained.

An API like MultimapBuilder.navigableKeys() would be appreciated.

@cpovirk
Copy link
Member

cpovirk commented Apr 16, 2018

Sorry that this has gotten no response. You might be able to get some navigable features from the MultimapBuilder.treeKeys().arrayListValues() multimap's asMap() view (though you'd have to cast). We should still give some thought to whether we could provide a better API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants