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