How can I create a Multimap in Java on Android

前端 未结 3 2009
伪装坚强ぢ
伪装坚强ぢ 2021-01-12 17:36

Where can I find an implementation of multimap for Java that will work on Android without having to include any other classes etc. The implementations I\'ve found all requir

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 17:57

    It looks like you are looking for Apache Commons Collection library. There you have a MultiMap class. I haven't tested it myself yet so I can't promise it works but it just looks about right for your project.

    You won't find a MultiMap function in Java hence others have written libraries containing it. You can however try to implement it yourself if you're knowledge-level is high enough but that'd require some Java experience. So your best bet is to try to learn how to use and if necessary adapt libraries for using them on Android.

提交回复
热议问题