随笔分类 -  设计模式

摘要:最简单的单例「饿汉式」public class Singleton{private static Singleton instance=new Singleton(); //other fields private Singleton(){} public static Singleton getInstance(){ return instance; }... 阅读全文
posted @ 2015-07-17 15:18 行者吴江 阅读(241) 评论(0) 推荐(0) 编辑

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