
Java
文章平均质量分 83
皓月如我
这个作者很懒,什么都没留下…
展开
-
设计模式
1. Abstract Factory (抽象工厂)Provide an interface for creating families of related or dependent objects without specifying their concrete classes.提供一个接口,用于创建相关或从属对象的族,而无需指定它们的具体类。使用频率:* * * * *2. Builder(建设)Separate the construction of a complex object f翻译 2021-05-04 16:52:58 · 275 阅读 · 0 评论 -
【学习】Java的反射机制
所谓反射模式,是指Java可以通过对象寻找类,或者通过字符串动态产生对象并调用中的方法。基础类StudyDemoClass,提供了printName(String)函数。package study;public class StudyDemoClass { public static void main(String[] args) { // TODO Auto-generat原创 2015-04-13 19:57:39 · 802 阅读 · 0 评论 -
Java中List高效去重
直接上代码:private static void DuplicateRemoval(List<Integer> ioList){ LinkedHashSet<Integer> tmpSet = new LinkedHashSet<Integer>(ioList.size()); tmpSet.addAll(ioList); i...原创 2018-08-25 11:24:24 · 7881 阅读 · 0 评论