双向地图 [英] Bidirectional Map

查看:166
本文介绍了双向地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能否建议一种地图或类似的数据结构,我们可以同样轻松地获得彼此的价值和关键。也就是说,每个都可以用于查找其他。

Can you suggest a kind of map or similar data structure where we can get both the value and key from each other at equal ease. That is to say, that each may be used to find other.

推荐答案

Java在其标准中没有双向映射库。

Java doesn't have a bidirectional map in its standard library.

例如使用 Google Guava

这篇关于双向地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆