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

org.vertexium.event.DeleteVertexEvent 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 DeleteVertexEvent extends GraphEvent {
    private final Vertex vertex;

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

    public Vertex getVertex() {
        return vertex;
    }

    @Override
    public String toString() {
        return this.getClass().getSimpleName() + "{vertex=" + vertex + '}';
    }

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

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

        DeleteVertexEvent other = (DeleteVertexEvent) obj;
        return getVertex().equals(other.getVertex());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy