我们将要讨论的新类的最后一个方面是LinkedHashMap的存取顺序选项。
The last aspect of the new classes we'll examine is the access order option for the LinkedHashMap.
数组存取语法很好地映射到集合,所以我在清单8中更新了jukebox类,把两种情况都做了重载。
The array access syntax maps quite well to collections, so I update the JukeBox class to overload both cases in Listing 8.
我们还提供了这个类的一些属性的存取方法,但是为了简便起见,在本文中我们省略了这些方法。
We also provided accessor methods for attributes of this class, but we've omitted these methods from this article for brevity.
应用推荐