org.vertexium.event.MarkHiddenEdgeEvent Maven / Gradle / Ivy
package org.vertexium.event;
import org.vertexium.Edge;
import org.vertexium.Graph;
public class MarkHiddenEdgeEvent extends GraphEvent {
private final Edge edge;
private final Object data;
public MarkHiddenEdgeEvent(Graph graph, Edge edge, Object data) {
super(graph);
this.edge = edge;
this.data = data;
}
public Edge getEdge() {
return edge;
}
public Object getData() {
return data;
}
@Override
public String toString() {
return "MarkHiddenEdgeEvent{edge=" + edge + '}';
}
@Override
public int hashCode() {
return getEdge().hashCode();
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof MarkHiddenEdgeEvent)) {
return false;
}
MarkHiddenEdgeEvent other = (MarkHiddenEdgeEvent) obj;
return getEdge().equals(other.getEdge());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy