静态构造方法 静态构造方法的语义和简化程度真的高于直接去 new 一个对象。比如 new 一个 List 对象,过去的使用是这样的: List<String> list = new ArrayList<>(); Guava 中的创建方式: List<String> list = Lists.newA Read More
posted @ 2020-07-17 09:53 AlexZS Views(122) Comments(0) Diggs(0)