摘要: 单例模式 学习内容:一、概念二、单例模式写法2.1 饿汉式2.2 懒汉式2.3 双重加锁机制2.4 静态内部类2.5 枚举 Enum 三、小结 总结: 参考文章: 【1】http://wuchong.me/blog/2014/08/28/how-to-correctly-write-singleto 阅读全文
posted @ 2021-05-24 21:38 Yan_Yang 阅读(372) 评论(0) 推荐(0) 编辑