home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / misc / SoftCache$Entry.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.3 KB  |  49 lines

  1. package sun.misc;
  2.  
  3. import java.util.Map;
  4. import sun.misc.SoftCache.ValueCell;
  5.  
  6. class SoftCache$Entry implements Map.Entry {
  7.    private Map.Entry ent;
  8.    private Object value;
  9.    // $FF: synthetic field
  10.    final SoftCache this$0;
  11.  
  12.    SoftCache$Entry(SoftCache var1, Map.Entry var2, Object var3) {
  13.       this.this$0 = var1;
  14.       this.ent = var2;
  15.       this.value = var3;
  16.    }
  17.  
  18.    public Object getKey() {
  19.       return this.ent.getKey();
  20.    }
  21.  
  22.    public Object getValue() {
  23.       return this.value;
  24.    }
  25.  
  26.    public Object setValue(Object var1) {
  27.       return this.ent.setValue(ValueCell.access$400(this.ent.getKey(), var1, SoftCache.access$500(this.this$0)));
  28.    }
  29.  
  30.    public boolean equals(Object var1) {
  31.       if (!(var1 instanceof Map.Entry)) {
  32.          return false;
  33.       } else {
  34.          Map.Entry var2 = (Map.Entry)var1;
  35.          return SoftCache.access$600(this.ent.getKey(), var2.getKey()) && SoftCache.access$600(this.value, var2.getValue());
  36.       }
  37.    }
  38.  
  39.    public int hashCode() {
  40.       Object var1;
  41.       return ((var1 = this.getKey()) == null ? 0 : var1.hashCode()) ^ (this.value == null ? 0 : this.value.hashCode());
  42.    }
  43.  
  44.    // $FF: synthetic method
  45.    static Map.Entry access$900(SoftCache$Entry var0) {
  46.       return var0.ent;
  47.    }
  48. }
  49.