标签:stat 优雅 log arch his tps 枚举 enum bsp
最优雅的单例模式:
/* * 枚举法单例模式 * */ public enum Singleton { SINGLETON("test"); public String name; Singleton(String name) { this.name=name; } public static void main(String[] args) { System.out.println(SINGLETON.name); } }
https://www.cnblogs.com/andy-zhou/p/5363585.html#_caption_3
https://www.cnblogs.com/hxsyl/archive/2013/03/19/2969489.html
标签:stat 优雅 log arch his tps 枚举 enum bsp
原文地址:https://www.cnblogs.com/yuanzipeng/p/10046269.html