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 / Collections$SingletonMap$ImmutableEntry.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  43 lines

  1. package java.util;
  2.  
  3. class Collections$SingletonMap$ImmutableEntry implements Map.Entry {
  4.    // $FF: renamed from: k java.lang.Object
  5.    final Object field_0;
  6.    // $FF: renamed from: v java.lang.Object
  7.    final Object field_1;
  8.  
  9.    Collections$SingletonMap$ImmutableEntry(Object var1, Object var2) {
  10.       this.field_0 = var1;
  11.       this.field_1 = var2;
  12.    }
  13.  
  14.    public Object getKey() {
  15.       return this.field_0;
  16.    }
  17.  
  18.    public Object getValue() {
  19.       return this.field_1;
  20.    }
  21.  
  22.    public Object setValue(Object var1) {
  23.       throw new UnsupportedOperationException();
  24.    }
  25.  
  26.    public boolean equals(Object var1) {
  27.       if (!(var1 instanceof Map.Entry)) {
  28.          return false;
  29.       } else {
  30.          Map.Entry var2 = (Map.Entry)var1;
  31.          return Collections.access$100(var2.getKey(), this.field_0) && Collections.access$100(var2.getValue(), this.field_1);
  32.       }
  33.    }
  34.  
  35.    public int hashCode() {
  36.       return (this.field_0 == null ? 0 : this.field_0.hashCode()) ^ (this.field_1 == null ? 0 : this.field_1.hashCode());
  37.    }
  38.  
  39.    public String toString() {
  40.       return this.field_0 + "=" + this.field_1;
  41.    }
  42. }
  43.