Class Long2ObjectHashMap.EntryIterator.MapEntry

  • All Implemented Interfaces:
    java.util.Map.Entry<java.lang.Long,​V>
    Enclosing class:
    Long2ObjectHashMap.EntryIterator

    public final class Long2ObjectHashMap.EntryIterator.MapEntry
    extends java.lang.Object
    implements java.util.Map.Entry<java.lang.Long,​V>
    An Map.Entry implementation.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long k  
      private V v  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntry​(long k, V v)
      Create a new entry.
    • Field Detail

      • k

        private final long k
      • v

        private final V v
    • Constructor Detail

      • MapEntry

        public MapEntry​(long k,
                        V v)
        Create a new entry.
        Parameters:
        k - key.
        v - value.
    • Method Detail

      • getKey

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

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

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

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry<java.lang.Long,​V>
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map.Entry<java.lang.Long,​V>
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object