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 / lang / Object.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.2 KB  |  51 lines

  1. package java.lang;
  2.  
  3. public class Object {
  4.    private static native void registerNatives();
  5.  
  6.    public final native Class getClass();
  7.  
  8.    public native int hashCode();
  9.  
  10.    public boolean equals(Object var1) {
  11.       return this == var1;
  12.    }
  13.  
  14.    protected native Object clone() throws CloneNotSupportedException;
  15.  
  16.    public String toString() {
  17.       return this.getClass().getName() + "@" + Integer.toHexString(this.hashCode());
  18.    }
  19.  
  20.    public final native void notify();
  21.  
  22.    public final native void notifyAll();
  23.  
  24.    public final native void wait(long var1) throws InterruptedException;
  25.  
  26.    public final void wait(long var1, int var3) throws InterruptedException {
  27.       if (var1 < 0L) {
  28.          throw new IllegalArgumentException("timeout value is negative");
  29.       } else if (var3 >= 0 && var3 <= 999999) {
  30.          if (var3 >= 500000 || var3 != 0 && var1 == 0L) {
  31.             ++var1;
  32.          }
  33.  
  34.          this.wait(var1);
  35.       } else {
  36.          throw new IllegalArgumentException("nanosecond timeout value out of range");
  37.       }
  38.    }
  39.  
  40.    public final void wait() throws InterruptedException {
  41.       this.wait(0L);
  42.    }
  43.  
  44.    protected void finalize() throws Throwable {
  45.    }
  46.  
  47.    static {
  48.       registerNatives();
  49.    }
  50. }
  51.