Class EquivalentLinkedHashMap<K,​V>

  • All Implemented Interfaces:
    java.util.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 passed Equivalence 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
    • Method Detail

      • removeEldestEntry

        protected boolean removeEldestEntry​(java.util.Map.Entry<K,​V> eldest)
        Deprecated.
      • get

        public V get​(java.lang.Object key)
        Deprecated.
        Specified by:
        get in interface java.util.Map<K,​V>
        Overrides:
        get in class EquivalentHashMap<K,​V>
      • remove

        public V remove​(java.lang.Object key)
        Deprecated.
        Specified by:
        remove in interface java.util.Map<K,​V>
        Overrides:
        remove in class EquivalentHashMap<K,​V>
      • clear

        public void clear()
        Deprecated.
        Specified by:
        clear in interface java.util.Map<K,​V>
        Overrides:
        clear in class EquivalentHashMap<K,​V>