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

org.securegraph.event.MarkHiddenVertexEvent Maven / Gradle / Ivy

The newest version!
package org.securegraph.event;

import org.securegraph.Graph;
import org.securegraph.Vertex;

public class MarkHiddenVertexEvent extends GraphEvent {
    private final Vertex vertex;

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

    public Vertex getVertex() {
        return vertex;
    }

    @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()) && super.equals(obj);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy