/** * LinkedHashMap本身就是一个LRU缓存,其数据结构是双链表+hashMap * put操作:把数据放到链表末尾,当超过指定大小后,会删除链表首节点 * get操作:把数据放到链表末尾。 * @param <K> * @param <V> */ static class MyLinkedHashMap<K, V> extends LinkedHashMap<K, V>{ private Integer maxNumber; public MyLinkedHashMap(int initialCapacity, float lo...