All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.event.MarkVisibleVertexEvent Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.event;

import org.vertexium.Graph;
import org.vertexium.Vertex;

public class MarkVisibleVertexEvent extends GraphEvent {
    private final Vertex vertex;

    public MarkVisibleVertexEvent(Graph graph, Vertex vertex) {
        super(graph);
        this.vertex = vertex;
    }

    public Vertex getVertex() {
        return vertex;
    }

    @Override
    public String toString() {
        return "MarkVisibleVertexEvent{vertex=" + vertex + '}';
    }

    @Override
    public int hashCode() {
        return getVertex().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof MarkVisibleVertexEvent)) {
            return false;
        }

        MarkVisibleVertexEvent other = (MarkVisibleVertexEvent) obj;
        return getVertex().equals(other.getVertex()) && super.equals(obj);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy