会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
huliangbin
不为猎人,便为猎物
博客园
首页
新随笔
联系
管理
订阅
2015年1月3日
使用单元素枚举实现单例
摘要: 如果不涉及到线程安全及延迟加载,单例最简单的写法:public class SingletonTest { public static SingletonTest instance = new SingletonTest(); private SingletonTest(){ ...
阅读全文
posted @ 2015-01-03 00:16 huliangbin
阅读(407)
评论(0)
推荐(0)
编辑
公告