Class StaticBucketMap.Node<K,​V>

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

    private static final class StaticBucketMap.Node<K,​V>
    extends java.lang.Object
    implements java.util.Map.Entry<K,​V>, KeyValue<K,​V>
    The Map.Entry for the StaticBucketMap.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Node()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      K getKey()
      Gets the key from the pair.
      V getValue()
      Gets the value from the pair.
      int hashCode()  
      V setValue​(V obj)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Node

        private Node()
    • Method Detail

      • getKey

        public K getKey()
        Description copied from interface: KeyValue
        Gets the key from the pair.
        Specified by:
        getKey in interface KeyValue<K,​V>
        Specified by:
        getKey in interface java.util.Map.Entry<K,​V>
        Returns:
        the key
      • getValue

        public V getValue()
        Description copied from interface: KeyValue
        Gets the value from the pair.
        Specified by:
        getValue in interface KeyValue<K,​V>
        Specified by:
        getValue in interface java.util.Map.Entry<K,​V>
        Returns:
        the value
      • hashCode

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

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

        public V setValue​(V obj)
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>