public class LinkedHashMap<K,V>
extends java.util.AbstractMap<K,V>
implements java.util.Map<K,V>
Constructor and Description |
---|
LinkedHashMap() |
LinkedHashMap(EqualityPolicy<? super K> hashingStrategy) |
LinkedHashMap(int capacity) |
LinkedHashMap(int capacity,
boolean accessOrder) |
LinkedHashMap(int capacity,
float loadFactor) |
LinkedHashMap(int capacity,
float loadFactor,
boolean accessOrder) |
LinkedHashMap(int capacity,
float loadFactor,
EqualityPolicy<? super K> hashingStrategy) |
LinkedHashMap(int capacity,
float loadFactor,
EqualityPolicy<? super K> hashingStrategy,
boolean accessOrder) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
void |
doRemoveEldestEntry() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object key) |
K |
getLastKey() |
V |
getLastValue() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
V |
remove(java.lang.Object key) |
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest) |
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest,
K key,
V value) |
int |
size() |
java.util.Collection<V> |
values() |
clone, containsValue, equals, hashCode, putAll, toString
public LinkedHashMap()
public LinkedHashMap(int capacity)
public LinkedHashMap(int capacity, boolean accessOrder)
public LinkedHashMap(int capacity, float loadFactor)
public LinkedHashMap(int capacity, float loadFactor, boolean accessOrder)
public LinkedHashMap(EqualityPolicy<? super K> hashingStrategy)
public LinkedHashMap(int capacity, float loadFactor, EqualityPolicy<? super K> hashingStrategy)
public LinkedHashMap(int capacity, float loadFactor, EqualityPolicy<? super K> hashingStrategy, boolean accessOrder)
public int size()
public boolean isEmpty()
public void clear()
public V get(java.lang.Object key)
public void doRemoveEldestEntry()
public boolean containsKey(java.lang.Object key)
public V remove(java.lang.Object key)
public java.util.Set<K> keySet()
public java.util.Collection<V> values()
protected boolean removeEldestEntry(java.util.Map.Entry<K,V> eldest, K key, V value)
public K getLastKey()
public V getLastValue()