Class EquivalentLinkedHashMap<K,V>
- java.lang.Object
-
- org.infinispan.commons.util.AbstractMap<K,V>
-
- org.infinispan.commons.equivalence.EquivalentHashMap<K,V>
-
- org.infinispan.commons.equivalence.EquivalentLinkedHashMap<K,V>
-
- All Implemented Interfaces:
Map<K,V>
public class EquivalentLinkedHashMap<K,V> extends EquivalentHashMap<K,V>
Deprecated.Custom hash-based linked list map which accepts no null keys nor null values, where equality and hash code calculations are done based on passedEquivalence
function implementations for keys and values, as opposed to relying on their own equals/hashCode/toString implementations. This is handy when using key/values whose mentioned methods cannot be overriden, i.e. arrays, and in situations where users want to avoid using wrapper objects. In order to provide linked list behaviour, entries are linked with each other in a predictable order.- Since:
- 6.0
- Author:
- Galder ZamarreƱo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EquivalentLinkedHashMap.IterationOrder
Deprecated.-
Nested classes/interfaces inherited from class org.infinispan.commons.equivalence.EquivalentHashMap
EquivalentHashMap.EntrySet, EquivalentHashMap.Node<K,V>, EquivalentHashMap.Values
-
Nested classes/interfaces inherited from class org.infinispan.commons.util.AbstractMap
AbstractMap.SimpleEntry<K,V>
-
-
Field Summary
-
Fields inherited from class org.infinispan.commons.util.AbstractMap
entrySet, keySet, values
-
-
Constructor Summary
Constructors Constructor Description EquivalentLinkedHashMap(int initialCapacity, float loadFactor, EquivalentLinkedHashMap.IterationOrder iterationOrder, Equivalence<? super K> keyEq, Equivalence<? super V> valueEq)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.V
get(Object key)
Deprecated.V
remove(Object key)
Deprecated.protected boolean
removeEldestEntry(Map.Entry<K,V> eldest)
Deprecated.-
Methods inherited from class org.infinispan.commons.equivalence.EquivalentHashMap
containsKey, containsValue, entrySet, equals, getKeyEquivalence, getValueEquivalence, isEmpty, keySet, put, putAll, size, values
-
Methods inherited from class org.infinispan.commons.util.AbstractMap
assertKeyNotNull, eq, hash, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
EquivalentLinkedHashMap
public EquivalentLinkedHashMap(int initialCapacity, float loadFactor, EquivalentLinkedHashMap.IterationOrder iterationOrder, Equivalence<? super K> keyEq, Equivalence<? super V> valueEq)
Deprecated.
-
-