K - the type of keys maintained by this mapV - the type of mapped values *public class InsertionOrderMap<K,V> extends LinkedHashMap<K,V>
LinkedHashMap,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
InsertionOrderMap()
Constructs an empty insertion-ordered InsertionOrderMap instance
with a default capacity (16) and load factor (0.75).
|
InsertionOrderMap(int initialCapacity)
Constructs an empty insertion-ordered InsertionOrderMap instance
with the specified initial capacity and a default load factor (0.75).
|
InsertionOrderMap(int initialCapacity,
float loadFactor)
Constructs an empty insertion-ordered InsertionOrderMap instance
with the specified initial capacity and load factor.
|
InsertionOrderMap(int initialCapacity,
float loadFactor,
boolean accessOrder)
Constructs an empty InsertionOrderMap instance with the
specified initial capacity, load factor and ordering mode.
|
InsertionOrderMap(Map<? extends K,? extends V> m)
Constructs an insertion-ordered InsertionOrderMap instance with
the same mappings as the specified map.
|
| Modifier and Type | Method and Description |
|---|---|
V |
put(K key,
V value)
Associates the specified value with the specified key in this map.
|
clear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, putAll, remove, size, valuesequals, hashCode, toStringpublic InsertionOrderMap()
public InsertionOrderMap(int initialCapacity)
initialCapacity - the initial capacity.IllegalArgumentException - if the initial capacity is negative.public InsertionOrderMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity.loadFactor - the load factor.IllegalArgumentException - if the initial capacity is negative or the load factor is
nonpositive.public InsertionOrderMap(int initialCapacity,
float loadFactor,
boolean accessOrder)
initialCapacity - the initial capacity.loadFactor - the load factor.accessOrder - the ordering mode - true for access-order,
false for insertion-order.IllegalArgumentException - if the initial capacity is negative or the load factor is
nonpositive.public InsertionOrderMap(Map<? extends K,? extends V> m)
m - the map whose mappings are to be placed in this map.NullPointerException - if the specified map is null.public V put(K key, V value)
put in interface Map<K,V>put in class HashMap<K,V>key - key with which the specified value is to be associated.value - value to be associated with the specified key.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.