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 8975537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:54:28+00:00 2026-06-15T18:54:28+00:00

I want to create a HashMap<String, HashMap<String, Long>> I know in guava we have

  • 0

I want to create a HashMap<String, HashMap<String, Long>>
I know in guava we have HashMultimap which is HashMap<String, HashSet<String>
but do we have some support for HashMap<String, HashMap<String, Long>> as well??

yes i can do that in core java, just looking for some library where i won’t have to check that a key exists everytime

I am explaining my problem with an example::
We have a device manufacturer, device name and device rank

now i need to return
list of devices for requested manufacturer – fewer requests
rank for particular device and manufacturer – lots of requests

In my case list of manufacturer and list of devices per manufacturer are quite big

any suggestion for an alternate datastructure is also welcomed.

  • 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-06-15T18:54:29+00:00Added an answer on June 15, 2026 at 6:54 pm

    It sounds like you might want a Table – possibly a HashBasedTable<String, String, Long>.

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

Sidebar

Related Questions

Hi I have the following requirement. I want to create variable number of String
I have a superclass called Canvas, from which I create several subclasses. I want
I have a problem. I want to create a search engine which is based
I want create wordpress website into which I want create user management... That means
i want create image animation , i have 50 images with png format now
I want create module which update list of usb devices automatically (not only mass
I want to create a generic function that takes any Map & a String
I have these classes that I use to create objects that I want to
I have multiple records received as string through a query. I want to store
I have one grid view which i want to add in footer of listview

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.