android 单例模式详解及优化
摘要:
下面代码是目前见过最好的写法: public class Singleton { private static volatile Singleton instance = null; // private constructor suppresses private Singleton(){ } p 阅读全文
posted @ 2016-08-29 17:24 baoshijie 阅读(209) 评论(0) 推荐(0)
浙公网安备 33010602011771号