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
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry()  
      Entry​(java.lang.Object k, java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.Object clear()
      Zero out key and value and return old value.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.Object key()  
      java.lang.Object value()  
      • Methods inherited from class java.lang.Object

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

      • key

        protected java.lang.Object key
      • value

        protected java.lang.Object value
      • deleted

        protected boolean deleted
      • hashCode

        private final int hashCode
    • Constructor Detail

      • Entry

        Entry()
      • Entry

        Entry​(java.lang.Object k,
              java.lang.Object value)
    • Method Detail

      • key

        public java.lang.Object key()
      • value

        public java.lang.Object value()
      • clear

        java.lang.Object clear()
        Zero out key and value and return old 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