![JAR search and dependency download from the Maven repository](/logo.png)
org.easyb.plugin.remoting.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of intellij-plugin Show documentation
Show all versions of intellij-plugin Show documentation
A plugin that enables easyb spec execution in IntelliJ
The newest version!
package org.easyb.plugin.remoting;
import java.io.Serializable;
import org.easyb.listener.ExecutionListener;
public class Event implements Serializable {
private EventType type;
private Object data;
public Event(EventType type, Object data) {
this.type = type;
this.data = data;
}
public void fire(ExecutionListener receiver) {
type.fire(receiver, data);
}
public EventType getType() {
return type;
}
public String toString() {
return "Event (type: " + type + ", data: " + data + ")";
}
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Event event = (Event) o;
return !(data != null ? !data.equals(event.data) : event.data != null) && type == event.type;
}
public int hashCode() {
int result;
result = (type != null ? type.hashCode() : 0);
result = 31 * result + (data != null ? data.hashCode() : 0);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy