摘要:
单例模式 确保一个类只有一个实例,并提供一个全局访问点。 类图: 1、懒汉式 /** * 懒汉式 * @author 码农 * */ public class LazySingleton { private static LazySingleton uniqueInstance; private L 阅读全文
posted @ 2018-03-29 22:04
一只狂奔的程序猿
阅读(122)
评论(0)
推荐(0)
2018年3月29日