KEYTYPE - Map key typeVALUETYPE - Map value typepublic class CommonsLinkedHashMap<KEYTYPE,VALUETYPE> extends LinkedHashMap<KEYTYPE,VALUETYPE> implements ICommonsOrderedMap<KEYTYPE,VALUETYPE>
LinkedHashMap implementation based on
ICommonsOrderedMap.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CommonsLinkedHashMap() |
CommonsLinkedHashMap(Collection<? extends COLLTYPE> aValues,
Function<? super COLLTYPE,? extends KEYTYPE> aKeyMapper,
Function<? super COLLTYPE,? extends VALUETYPE> aValueMapper) |
CommonsLinkedHashMap(int nInitialCapacity) |
CommonsLinkedHashMap(int nInitialCapacity,
float fLoadFactor) |
CommonsLinkedHashMap(int nInitialCapacity,
float fLoadFactor,
boolean bAccessOrder) |
CommonsLinkedHashMap(Map<? extends KEYTYPE,? extends VALUETYPE> aMap) |
CommonsLinkedHashMap(Map<? extends SRCKEYTYPE,? extends SRCVALUETYPE> aValues,
Function<? super SRCKEYTYPE,? extends KEYTYPE> aKeyMapper,
Function<? super SRCVALUETYPE,? extends VALUETYPE> aValueMapper) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> CommonsLinkedHashMap<K,V> |
createInstance()
Create a new empty map.
|
CommonsLinkedHashMap<KEYTYPE,VALUETYPE> |
getClone() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcopyOfEntrySet, copyOfKeySet, copyOfKeySet, getLastKey, getLastKey, getLastValue, getLastValueaddAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAsUnmodifiable, getFirstEntry, getFirstEntry, getFirstKey, getFirstKey, getFirstValue, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, put, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, removeIf, removeIfKey, removeIfValue, removeObject, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic CommonsLinkedHashMap()
public CommonsLinkedHashMap(@Nonnegative int nInitialCapacity)
public CommonsLinkedHashMap(@Nonnegative int nInitialCapacity, float fLoadFactor)
public CommonsLinkedHashMap(@Nullable Map<? extends KEYTYPE,? extends VALUETYPE> aMap)
public CommonsLinkedHashMap(@Nonnegative int nInitialCapacity, float fLoadFactor, boolean bAccessOrder)
public CommonsLinkedHashMap(@Nullable Collection<? extends COLLTYPE> aValues, @Nonnull Function<? super COLLTYPE,? extends KEYTYPE> aKeyMapper, @Nonnull Function<? super COLLTYPE,? extends VALUETYPE> aValueMapper)
@Nonnull @ReturnsMutableCopy public <K,V> CommonsLinkedHashMap<K,V> createInstance()
ICommonsMapCommonsHashMap.createInstance in interface ICommonsMap<KEYTYPE,VALUETYPE>createInstance in interface ICommonsOrderedMap<KEYTYPE,VALUETYPE>K - Map key typeV - Map value typenull.@Nonnull @ReturnsMutableCopy public CommonsLinkedHashMap<KEYTYPE,VALUETYPE> getClone()
getClone in interface ICommonsOrderedMap<KEYTYPE,VALUETYPE>getClone in interface ICloneable<ICommonsMap<KEYTYPE,VALUETYPE>>Copyright © 2014–2019 Philip Helger. All rights reserved.