来自 Javadoc:
Hash table and linked list implementation of the Map interface, with predictable iteration order. This implementation differs from HashMap in that it maintains a doubly-linked list running through all of its entries.
如果是这样,那么它为什么不提供像 java 中的 List 那样的对象访问,list.get(index);
更新
我已经使用 LinkedHashMap 实现了 LRU 缓存。我的算法要求我从缓存中访问 LRU 对象。这就是我需要随机访问的原因,但我认为这会降低我的性能,所以我改变了逻辑,并且我正在访问 LRU 对象,就在缓存已满时......使用 removeEldestEntry()
谢谢你们...