home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- class HashMap$Entry implements Map.Entry {
- int hash;
- Object key;
- Object value;
- HashMap$Entry next;
-
- HashMap$Entry(int var1, Object var2, Object var3, HashMap$Entry var4) {
- this.hash = var1;
- this.key = var2;
- this.value = var3;
- this.next = var4;
- }
-
- protected Object clone() {
- return new HashMap$Entry(this.hash, this.key, this.value, this.next == null ? null : (HashMap$Entry)this.next.clone());
- }
-
- public Object getKey() {
- return this.key;
- }
-
- public Object getValue() {
- return this.value;
- }
-
- public Object setValue(Object var1) {
- Object var2 = this.value;
- this.value = var1;
- return var2;
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- return (this.key == null ? var2.getKey() == null : this.key.equals(var2.getKey())) && (this.value == null ? var2.getValue() == null : this.value.equals(var2.getValue()));
- }
- }
-
- public int hashCode() {
- return this.hash ^ (this.value == null ? 0 : this.value.hashCode());
- }
-
- public String toString() {
- return this.key + "=" + this.value;
- }
- }
-