Class Hashtable.Entry

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Hashtable

    public static final class Hashtable.Entry
    extends java.lang.Object
    implements java.io.Serializable
    One entry in the hash table. Override equals and hashcode because this is another area in which JavaScript and Java differ. This entry also becomes a node in the linked list.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.Object key()  
      java.lang.Object value()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • key

        public java.lang.Object key()
      • value

        public java.lang.Object value()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object