2007-06-21 01:37:43 +00:00
|
|
|
package java.lang;
|
|
|
|
|
|
|
|
public class Object {
|
2007-08-15 01:14:55 +00:00
|
|
|
protected Object clone() throws CloneNotSupportedException {
|
2007-09-26 18:59:18 +00:00
|
|
|
if ((this instanceof Cloneable) || getClass().isArray()) {
|
2007-08-15 01:14:55 +00:00
|
|
|
return clone(this);
|
|
|
|
} else {
|
2007-08-23 03:22:44 +00:00
|
|
|
throw new CloneNotSupportedException(getClass().getName());
|
2007-08-15 01:14:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private static native Object clone(Object o);
|
2007-06-21 01:37:43 +00:00
|
|
|
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
return this == o;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected void finalize() { }
|
|
|
|
|
2007-06-24 21:49:04 +00:00
|
|
|
public native final Class<? extends Object> getClass();
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-06-24 21:49:04 +00:00
|
|
|
public native int hashCode();
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-06-24 21:49:04 +00:00
|
|
|
public native final void notify();
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-06-24 21:49:04 +00:00
|
|
|
public native final void notifyAll();
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-06-24 21:49:04 +00:00
|
|
|
public native String toString();
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-08-30 23:31:32 +00:00
|
|
|
public final void wait() throws InterruptedException {
|
2007-07-07 23:47:35 +00:00
|
|
|
wait(0);
|
|
|
|
}
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-08-30 23:31:32 +00:00
|
|
|
public native final void wait(long timeout) throws InterruptedException;
|
2007-06-21 01:37:43 +00:00
|
|
|
}
|