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

org.vertexium.EdgeVertexIds Maven / Gradle / Ivy

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

public class EdgeVertexIds implements Comparable {
    private final String outVertexId;
    private final String inVertexId;

    public EdgeVertexIds(String outVertexId, String inVertexId) {
        this.outVertexId = outVertexId;
        this.inVertexId = inVertexId;
    }

    public String getOutVertexId() {
        return outVertexId;
    }

    public String getInVertexId() {
        return inVertexId;
    }

    @Override
    public int compareTo(String id) {
        if (getOutVertexId().equals(id) || getInVertexId().equals(id)) {
            return 0;
        }
        return 1;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy