由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - key design
相关主题
Re: Confused!Java 面试常见问题!
answer Re: how HashMap/Hashtable compare key?help ...
[转载] How do I sort a map in Java?Simple question
JDK Source?Simple question: delete element from collection on condition?
问个Hashtable的问题Collection return type and web service
Java里有没有象cell array一样的东西interview question
哪位大哥总结一下Iterator这些数据集合请教document
[转载] Java 1.5 Generic 问题HashMap cache
相关话题的讨论汇总
话题: transport话题: domain话题: dns话题: string话题: key
进入Java版参与讨论
1 (共1页)
p***p
发帖数: 559
1
I am writing a DNS cache, map domain name and transport to DNS entry in a
Hashmap, both keys are string. I designed a key as a String=domain+transport
, well, it is not so intelligent, any other idea?
m******t
发帖数: 2416
2
I would have done transport+domain, which is a lot more intelligent.
No, I'm just kidding. What's wrong with domain+transport? In fact I can't
think of any better way to guarantee uniqueness.
1 (共1页)
进入Java版参与讨论
相关主题
HashMap cache问个Hashtable的问题
The best HashMap Cache solutionJava里有没有象cell array一样的东西
web service returns HashMap that contains multiple ArrayList哪位大哥总结一下Iterator这些数据集合
Java的工作面试主要考什么?主要是算法吗?[转载] Java 1.5 Generic 问题
Re: Confused!Java 面试常见问题!
answer Re: how HashMap/Hashtable compare key?help ...
[转载] How do I sort a map in Java?Simple question
JDK Source?Simple question: delete element from collection on condition?
相关话题的讨论汇总
话题: transport话题: domain话题: dns话题: string话题: key