摘要: The singleton pattern restricts the instantiation of a class to one object. In Java, to enforce this, the best approach is to use an enum. This great 阅读全文
posted @ 2016-08-17 16:21 SolidMango 阅读(263) 评论(0) 推荐(0) 编辑