/Users/lyon/j4p/src/java/lang/Object.java
|
1 // Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
2 // Jad home page: http://kpdus.tripod.com/jad.html
3 // Decompiler options: packfields(3) packimports(7) deadcode fieldsfirst splitstr(64) nonlb lnc radix(10) lradix(10)
4 // Source File Name: Object.java
5
6 package java.lang;
7
8 // Referenced classes of package java.lang:
9 // StringBuffer, IllegalArgumentException, CloneNotSupportedException, InterruptedException,
10 // Throwable, Class, Integer, String
11
12 public class Object {
13
14 public Object() {
15 }
16
17 private static native void registerNatives();
18
19 public final native Class getClass();
20
21 public native int hashCode();
22
23 public boolean equals(Object obj) {
24 /* 118*/ return this == obj;
25 }
26
27 protected native Object clone() throws CloneNotSupportedException;
28
29 public String toString() {
30 /* 203*/ return getClass().getName() + "@" + Integer.toHexString(hashCode());
31 }
32
33 public final native void notify();
34
35 public final native void notifyAll();
36
37 public final native void wait(long l) throws InterruptedException;
38
39 public final void wait(long l, int i) throws InterruptedException {
40 /* 382*/ if(l < 0L)
41 /* 383*/ throw new IllegalArgumentException("timeout value is negative");
42 /* 386*/ if(i < 0 || i > 999999)
43 /* 387*/ throw new IllegalArgumentException("nanosecond timeout value out of range");
44 /* 391*/ if(i >= 500000 || i != 0 && l == 0L)
45 /* 392*/ l++;
46 /* 395*/ wait(l);
47 }
48
49 public final void wait() throws InterruptedException {
50 /* 426*/ wait(0L);
51 }
52
53 protected void finalize() throws Throwable {
54 }
55
56 static {
57 /* 24*/ registerNatives();
58 }
59 }
60