列表2显示了当这个项目已经被打开时如何转换它的存取类型。
Listing 2 shows how to switch the type of access when the project is already open.
因为我们对3个月份进行了存取操作,这3个月份将被移到列表的尾部,二月在最后,四月在六月的前面。
Because we accessed three months, they will be moved to the end of the list, with February last and April before June.
把false存取顺序作为缺省值,要获得一个存取顺序的列表,您必须传入一个true;也即映射表的头部是使用时间距今最远的映射表条目。
Think of a false access order as the default, where you must pass in a true to have the list in access order; that is, the head of the map is the least recently used map entry.
应用推荐