KEYTYPE - Map key typeVALUETYPE - Map value typepublic class CommonsHashMap<KEYTYPE,VALUETYPE> extends HashMap<KEYTYPE,VALUETYPE> implements ICommonsMap<KEYTYPE,VALUETYPE>
HashMap implementation based on ICommonsMap.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CommonsHashMap() |
CommonsHashMap(Collection<? extends COLLTYPE> aValues,
Function<? super COLLTYPE,? extends KEYTYPE> aKeyMapper,
Function<? super COLLTYPE,? extends VALUETYPE> aValueMapper) |
CommonsHashMap(int nInitialCapacity) |
CommonsHashMap(int nInitialCapacity,
float fLoadFactor) |
CommonsHashMap(Map<? extends KEYTYPE,? extends VALUETYPE> aMap) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> CommonsHashMap<K,V> |
createInstance()
Create a new empty map.
|
CommonsHashMap<KEYTYPE,VALUETYPE> |
getClone() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfEntrySet, copyOfKeySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAsUnmodifiable, getFirstEntry, getFirstEntry, getFirstKey, getFirstKey, getFirstValue, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, 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 CommonsHashMap()
public CommonsHashMap(@Nonnegative int nInitialCapacity)
public CommonsHashMap(@Nonnegative int nInitialCapacity, @Nonnegative float fLoadFactor)
@Nonnull @ReturnsMutableCopy public <K,V> CommonsHashMap<K,V> createInstance()
ICommonsMapCommonsHashMap.createInstance in interface ICommonsMap<KEYTYPE,VALUETYPE>K - Map key typeV - Map value typenull.@Nonnull @ReturnsMutableCopy public CommonsHashMap<KEYTYPE,VALUETYPE> getClone()
getClone in interface ICloneable<ICommonsMap<KEYTYPE,VALUETYPE>>Copyright © 2014–2017 Philip Helger. All rights reserved.