
K - key type.V - value type.public class LinkedHashMap<K,V> extends HashMap<K,V> implements Map<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LinkedHashMap() |
LinkedHashMap(int ignored) |
LinkedHashMap(int ignored,
float alsoIgnored) |
LinkedHashMap(int ignored,
float alsoIgnored,
boolean accessOrder) |
LinkedHashMap(Map<? extends K,? extends V> toBeCopied) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
clone() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
protected V |
getStringValue(String key)
Returns the value for the given key in the stringMap.
|
protected boolean |
hasStringValue(String key)
Returns true if the given key exists in the stringMap.
|
V |
put(K key,
V value) |
protected V |
putStringValue(String key,
V value)
Sets the specified key to the specified value in the stringMap.
|
V |
remove(Object key) |
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
protected V |
removeStringValue(String key)
Removes the specified key from the stringMap and returns the value that was
previously there.
|
int |
size() |
public LinkedHashMap()
public LinkedHashMap(int ignored)
public LinkedHashMap(int ignored,
float alsoIgnored)
public LinkedHashMap(int ignored,
float alsoIgnored,
boolean accessOrder)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>protected V getStringValue(String key)
null if the specified key does not exist.protected boolean hasStringValue(String key)
protected V putStringValue(String key, V value)
null if the specified
key did not exist.Copyright © 2018. All rights reserved.