摘要: 一 单例模式: 解决的问题:就是可以保证一个类在内存中的对象唯一性。 public class SingleInstance { private static volatile SingleInstance singleInstance = null; private SingleInstance( 阅读全文
posted @ 2020-02-26 14:57 gsluofu 阅读(163) 评论(0) 推荐(0) 编辑