HashMap、LinkedHashMap、ConcurrentHashMap、ArrayList、LinkedList对比
HashSet与HashMap区别
HashMap实现了Map接口
HashSet实现了Set接口
HashMap储存键值对
HashSet仅仅存储对象
HashMap使用put()方法将元素放入map中
HashSet使用add()方法将元素放入set中
HashMap中使用键对象来计算hashcode值
HashSet使用成员对象来计算hashcode值
HashMap比较快...
原创
2019-01-11 10:02:24 ·
299 阅读 ·
0 评论