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

org.vertexium.EdgeBuilder Maven / Gradle / Ivy

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

public abstract class EdgeBuilder extends EdgeBuilderBase {
    private Vertex outVertex;
    private Vertex inVertex;

    public EdgeBuilder(String edgeId, Vertex outVertex, Vertex inVertex, String label, Visibility visibility) {
        super(edgeId, label, visibility);
        this.outVertex = outVertex;
        this.inVertex = inVertex;
    }

    protected Vertex getOutVertex() {
        return outVertex;
    }

    protected Vertex getInVertex() {
        return inVertex;
    }

    @Override
    public String getOutVertexId() {
        return getOutVertex().getId();
    }

    @Override
    public String getInVertexId() {
        return getInVertex().getId();
    }

    @Override
    public abstract Edge save(Authorizations authorizations);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy