| Method from java.lang.Object Detail: |
protected Object clone() throws CloneNotSupportedException {
if (!(this instanceof Cloneable)) {
throw new CloneNotSupportedException(
"Doesn't implement Cloneable interface!");
}
return VMMemoryManager.clone(this);
}
|
public boolean equals(Object object) {
return this == object;
}
|
protected void finalize() throws Throwable {
}
|
public final Class<Object> getClass() {
return VMClassRegistry.getClass(this);
}
|
public int hashCode() {
return VMMemoryManager.getIdentityHashCode(this);
}
|
public final void notify() {
int status = VMThreadManager.notify(this);
if (status == VMThreadManager.TM_ERROR_ILLEGAL_STATE) {
throw new IllegalMonitorStateException();
} else if (status != VMThreadManager.TM_ERROR_NONE) {
throw new InternalError(
"Thread Manager internal error " + status);
}
}
|
public final void notifyAll() {
int status = VMThreadManager.notifyAll(this);
if (status == VMThreadManager.TM_ERROR_ILLEGAL_STATE) {
throw new IllegalMonitorStateException();
} else if (status != VMThreadManager.TM_ERROR_NONE) {
throw new InternalError(
"Thread Manager internal error " + status);
}
}
|
public String toString() {
return getClass().getName() + '@' + Integer.toHexString(hashCode());
}
|
public final void wait() throws InterruptedException {
int status = VMThreadManager.wait(this, 0, 0);
if (status == VMThreadManager.TM_ERROR_INTERRUPT) {
throw new InterruptedException();
} else if (status == VMThreadManager.TM_ERROR_ILLEGAL_STATE) {
throw new IllegalMonitorStateException();
} else if (status != VMThreadManager.TM_ERROR_NONE) {
// throw new InternalError(
// "Thread Manager internal error " + status);
}
}
|
public final void wait(long millis) throws InterruptedException {
wait(millis, 0);
}
|
public final void wait(long millis,
int nanos) throws InterruptedException {
if(millis < 0 || nanos < 0 || nanos > 999999 ){
throw new IllegalArgumentException("Arguments don't match the expected range!");
}
int status = VMThreadManager.wait(this, millis, nanos);
if (status == VMThreadManager.TM_ERROR_INTERRUPT) {
throw new InterruptedException();
} else if (status == VMThreadManager.TM_ERROR_ILLEGAL_STATE) {
throw new IllegalMonitorStateException();
} else if (status != VMThreadManager.TM_ERROR_NONE) {
// throw new InternalError(
// "Thread Manager internal error " + status);
}
}
|