
数据结构
George不挂科
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
concurrenthashmap弱一致性与1.8中改进
转载:https://blog.csdn.net/qq_28605513/article/details/84992262(弱一致性) https://blog.csdn.net/u012403290/article/details/68485855(1.8改进),关键是取消了segment改成Node,又一个forwardingNode来保证线程安全,它表示当前节点为空或者已经处理完,后续线程遍...转载 2019-02-12 12:37:20 · 1274 阅读 · 0 评论 -
Set区分
转载:https://www.cnblogs.com/xiaoxi/p/6229199.html hashset就是往hashmap里面存值,Set.add(obj) = map.put(obj,new Object()),注意如果添加对象的话需要重写hashCode()方法,因为比较的是hashcode值。 TreeSet的话就是可以实现排序,可以自定义排序方式。 ...转载 2019-02-12 13:06:33 · 200 阅读 · 0 评论