home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- class WeakHashMap$Entry implements Map.Entry {
- private Map.Entry ent;
- private Object key;
-
- WeakHashMap$Entry(Map.Entry var1, Object var2) {
- this.ent = var1;
- this.key = var2;
- }
-
- public Object getKey() {
- return this.key;
- }
-
- public Object getValue() {
- return this.ent.getValue();
- }
-
- public Object setValue(Object var1) {
- return this.ent.setValue(var1);
- }
-
- private static boolean valEquals(Object var0, Object var1) {
- return var0 == null ? var1 == null : var0.equals(var1);
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- return valEquals(this.key, var2.getKey()) && valEquals(this.getValue(), var2.getValue());
- }
- }
-
- public int hashCode() {
- Object var1;
- return (this.key == null ? 0 : this.key.hashCode()) ^ ((var1 = this.getValue()) == null ? 0 : var1.hashCode());
- }
- }
-