prompto.debug.event.WorkerCompletedDebugEvent Maven / Gradle / Ivy
The newest version!
package prompto.debug.event;
import prompto.debug.IDebugEventListener;
import prompto.debug.ProcessDebugger.DebuggedWorker;
import prompto.debug.worker.IWorker;
public class WorkerCompletedDebugEvent extends WorkerDebugEvent {
public WorkerCompletedDebugEvent() {
}
public WorkerCompletedDebugEvent(IWorker worker) {
super(worker);
}
@Override
public void execute(IDebugEventListener listener) {
IWorker worker = DebuggedWorker.parse(workerId);
listener.onWorkerStartedEvent(worker);
}
@Override
public int hashCode() {
return this.getClass().hashCode();
}
@Override
public boolean equals(Object other) {
return other==this || (other instanceof WorkerCompletedDebugEvent && ((WorkerCompletedDebugEvent)other).equals(this));
}
public boolean equals(WorkerCompletedDebugEvent other) {
return super.equals(other);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy