Package org.htmlunit.corejs.javascript
Class Hashtable.Entry
- java.lang.Object
-
- org.htmlunit.corejs.javascript.Hashtable.Entry
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Hashtable
public static final class Hashtable.Entry extends java.lang.Object implements java.io.SerializableOne 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
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandeletedprivate inthashCodeprotected java.lang.Objectkeyprotected Hashtable.Entrynextprotected Hashtable.Entryprevprivate static longserialVersionUIDprotected java.lang.Objectvalue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclear()Zero out key and value and return old value.booleanequals(java.lang.Object o)inthashCode()java.lang.Objectkey()java.lang.Objectvalue()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
key
protected java.lang.Object key
-
value
protected java.lang.Object value
-
deleted
protected boolean deleted
-
next
protected Hashtable.Entry next
-
prev
protected Hashtable.Entry prev
-
hashCode
private final int hashCode
-
-
Method Detail
-
key
public java.lang.Object key()
-
value
public java.lang.Object value()
-
clear
void clear()
Zero out key and value and return old value.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-