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

live.document.mavenplugin.networkgraph.GraphEdge Maven / Gradle / Ivy

package live.document.mavenplugin.networkgraph;

public class GraphEdge {
    private String from;
    private String to;
    private String hint;
    private EdgeStyle normal;

    public GraphEdge() {
    }

    public GraphEdge(String from, String to) {
        this.from = from;
        this.to = to;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        GraphEdge graphEdge = (GraphEdge) o;

        if (!from.equals(graphEdge.from)) return false;
        return to.equals(graphEdge.to);
    }

    @Override
    public int hashCode() {
        int result = from.hashCode();
        result = 31 * result + to.hashCode();
        return result;
    }

    public String getHint() {
        return hint;
    }

    public void setHint(String hint) {
        this.hint = hint;
    }

    public EdgeStyle getNormal() {
        return normal;
    }

    public void setNormal(EdgeStyle normal) {
        this.normal = normal;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy