为了执行可变的方法,新的 LinkedList 类作为一个内部不可变的链表的容器,如清单 5 所示。
To implement mutator methods, the new LinkedList class serves as a container for an internal, immutable list, as shown in Listing 5.
对于大对象,紧凑指针链表胜出,因为反序测试无需访问保存在另一个容器中的值。
For big objects the compact pointer list wins because the reversal test doesn't need access to values stored in another container.
应用推荐