随笔分类 -  Design pattern

摘要:一、饿汉单例 1. 静态变量实现 public class Singleton { private static Singleton instance = new Singleton(); private Singleton() {} public static Singleton getInsta 阅读全文
posted @ 2020-12-09 23:02 周二鸭 阅读(250) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示