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 / awt / RenderingHints$Key.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.4 KB  |  41 lines

  1. package java.awt;
  2.  
  3. import java.util.HashMap;
  4.  
  5. public abstract class RenderingHints$Key {
  6.    private static HashMap identitymap = new HashMap(17);
  7.    private int privatekey;
  8.  
  9.    private String getIdentity() {
  10.       return "Instance(" + this.privatekey + ") of " + this.getClass().getName();
  11.    }
  12.  
  13.    private static synchronized void recordIdentity(RenderingHints$Key var0) {
  14.       String var1 = var0.getIdentity();
  15.       if (identitymap.containsKey(var1)) {
  16.          throw new IllegalArgumentException(var1 + " already registered");
  17.       } else {
  18.          identitymap.put(var1, var0);
  19.       }
  20.    }
  21.  
  22.    protected RenderingHints$Key(int var1) {
  23.       this.privatekey = var1;
  24.       recordIdentity(this);
  25.    }
  26.  
  27.    public abstract boolean isCompatibleValue(Object var1);
  28.  
  29.    protected final int intKey() {
  30.       return this.privatekey;
  31.    }
  32.  
  33.    public final int hashCode() {
  34.       return System.identityHashCode(this);
  35.    }
  36.  
  37.    public final boolean equals(Object var1) {
  38.       return this == var1;
  39.    }
  40. }
  41.