Class LongLinkedHashMap<V>


  • public class LongLinkedHashMap<V>
    extends LongHashMap<V>
    This is a bare-bones, application specific, optimized ordered hash map implementation.
    Since:
    release specific (what release of product did this appear in)
    • Constructor Summary

      Constructors 
      Constructor Description
      LongLinkedHashMap()
      Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.75).
      LongLinkedHashMap​(int initialCapacity)
      Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.75).
      LongLinkedHashMap​(int initialCapacity, float loadFactor)
      Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.
    • Constructor Detail

      • LongLinkedHashMap

        public LongLinkedHashMap​(int initialCapacity,
                                 float loadFactor)
        Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.
        Parameters:
        initialCapacity - the initial capacity
        loadFactor - the load factor
        Throws:
        java.lang.IllegalArgumentException - if the initial capacity is negative or the load factor is nonpositive
      • LongLinkedHashMap

        public LongLinkedHashMap​(int initialCapacity)
        Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.75).
        Parameters:
        initialCapacity - the initial capacity
        Throws:
        java.lang.IllegalArgumentException - if the initial capacity is negative
      • LongLinkedHashMap

        public LongLinkedHashMap()
        Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.75).
    • Method Detail

      • init

        protected void init()
        Called by superclass constructors and pseudoconstructors (clone, readObject) before any entries are inserted into the map. Initializes the chain.
        Overrides:
        init in class LongHashMap<V>
      • keys

        public long[] keys()
        Returns true if this map maps one or more keys to the specified value.
        Overrides:
        keys in class LongHashMap<V>
        Parameters:
        value - value whose presence in this map is to be tested
        Returns:
        true if this map maps one or more keys to the specified value
      • keysReverse

        public long[] keysReverse()
      • valuesReverseIterator

        public java.util.Iterator<V> valuesReverseIterator()
      • clear

        public void clear()
        Removes all of the mappings from this map. The map will be empty after this call returns.
        Overrides:
        clear in class LongHashMap<V>