Class AbstractLinkedMap.LinkEntry<K,​V>

  • All Implemented Interfaces:
    java.util.Map.Entry<K,​V>, KeyValue<K,​V>
    Enclosing class:
    AbstractLinkedMap<K,​V>

    protected static class AbstractLinkedMap.LinkEntry<K,​V>
    extends AbstractHashedMap.HashEntry<K,​V>
    LinkEntry that stores the data.

    If you subclass AbstractLinkedMap but not LinkEntry then you will not be able to access the protected fields. The entryXxx() methods on AbstractLinkedMap exist to provide the necessary access.

    • Constructor Detail

      • LinkEntry

        protected LinkEntry​(AbstractHashedMap.HashEntry<K,​V> next,
                            int hashCode,
                            java.lang.Object key,
                            V value)
        Constructs a new entry.
        Parameters:
        next - the next entry in the hash bucket sequence
        hashCode - the hash code
        key - the key
        value - the value