Class ShortObjectHashMap.MapEntry

  • All Implemented Interfaces:
    java.util.Map.Entry<java.lang.Short,​V>
    Enclosing class:
    ShortObjectHashMap<V>

    final class ShortObjectHashMap.MapEntry
    extends java.lang.Object
    implements java.util.Map.Entry<java.lang.Short,​V>
    A single entry in the map.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int entryIndex  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntry​(int entryIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Short getKey()  
      V getValue()  
      V setValue​(V value)  
      private void verifyExists()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map.Entry

        equals, hashCode
    • Field Detail

      • entryIndex

        private final int entryIndex
    • Constructor Detail

      • MapEntry

        MapEntry​(int entryIndex)
    • Method Detail

      • getKey

        public java.lang.Short getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<java.lang.Short,​V>
      • getValue

        public V getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<java.lang.Short,​V>
      • setValue

        public V setValue​(V value)
        Specified by:
        setValue in interface java.util.Map.Entry<java.lang.Short,​V>
      • verifyExists

        private void verifyExists()