
Java
freeman_haoran
这个作者很懒,什么都没留下…
展开
-
源码分析:深入探讨Iterator模式
java.util包中包含了一系列重要的集合类。本文将从分析源码入手,深入研究一个集合类的内部结构,以及遍历集合的迭代模式的源码实现内幕。 下面我们先简单讨论一个根接口Collection,然后分析一个抽象类AbstractList和它的对应Iterator接口,并仔细研究迭代子模式的实现原理。 本文讨论的源代码版本是JDK 1.4.2,因为JDK 1.5在java.uti...原创 2011-09-22 20:04:03 · 108 阅读 · 0 评论 -
系统打印日志的10条建议(翻译)
Our latest JCP partner, Tomasz Nurkiewicz, has submitted a number of posts describing the basic principles of proper application logging. I found them quite interesting, thus I decided to aggregate th...原创 2014-06-20 10:17:14 · 477 阅读 · 0 评论