Loading

摘要: ## 使用方法 一、Child.class ```java package proxys; public interface Child { void eat(); } ``` 二、ChildImpl.class ```java package proxys; public class ChildI 阅读全文
posted @ 2021-08-20 15:52 xtyuns 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 一、懒汉式 ```java public class ASingleton { private static ASingleton INSTANCE; private ASingleton() {} /** * 懒汉: 延迟初始化, 线程不安全的单例模式 * @return 对象实例 */ publ 阅读全文
posted @ 2021-08-20 10:47 xtyuns 阅读(41) 评论(0) 推荐(0) 编辑