K - 键类型V - 值类型public class FixedLinkedHashMap<K,V> extends LinkedHashMap<K,V>
LinkedHashMap 实现AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
FixedLinkedHashMap(int capacity)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCapacity()
获取容量
|
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
void |
setCapacity(int capacity)
设置容量
|
clear, containsValue, getclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic int getCapacity()
public void setCapacity(int capacity)
capacity - 容量protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
removeEldestEntry 在类中 LinkedHashMap<K,V>Copyright © 2019. All rights reserved.