摘要: https://www.jianshu.com/p/746db5ceec02 阅读全文
posted @ 2018-03-20 17:32 秋水秋色 阅读(113) 评论(0) 推荐(0)
摘要: AtomicReference类主要属性(来源于jdk1.7中的源码) 采用AtomicRerence编写的单例模式 1 public class Singleton { 2 3 private static AtomicReference<Singleton> singleton = new At 阅读全文
posted @ 2018-03-20 17:28 秋水秋色 阅读(661) 评论(0) 推荐(0)