home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / util / TreeMap$Entry.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  50 lines

  1. package java.util;
  2.  
  3. class TreeMap$Entry implements Map.Entry {
  4.    Object key;
  5.    Object value;
  6.    TreeMap$Entry left = null;
  7.    TreeMap$Entry right = null;
  8.    TreeMap$Entry parent;
  9.    boolean color = true;
  10.  
  11.    TreeMap$Entry(Object var1, Object var2, TreeMap$Entry var3) {
  12.       this.key = var1;
  13.       this.value = var2;
  14.       this.parent = var3;
  15.    }
  16.  
  17.    public Object getKey() {
  18.       return this.key;
  19.    }
  20.  
  21.    public Object getValue() {
  22.       return this.value;
  23.    }
  24.  
  25.    public Object setValue(Object var1) {
  26.       Object var2 = this.value;
  27.       this.value = var1;
  28.       return var2;
  29.    }
  30.  
  31.    public boolean equals(Object var1) {
  32.       if (!(var1 instanceof Map.Entry)) {
  33.          return false;
  34.       } else {
  35.          Map.Entry var2 = (Map.Entry)var1;
  36.          return TreeMap.access$300(this.key, var2.getKey()) && TreeMap.access$300(this.value, var2.getValue());
  37.       }
  38.    }
  39.  
  40.    public int hashCode() {
  41.       int var1 = this.key == null ? 0 : this.key.hashCode();
  42.       int var2 = this.value == null ? 0 : this.value.hashCode();
  43.       return var1 ^ var2;
  44.    }
  45.  
  46.    public String toString() {
  47.       return this.key + "=" + this.value;
  48.    }
  49. }
  50.