Interface EdgeBuilder<V,​E>

  • Type Parameters:
    V - the type of the decorated vertex value
    E - the type of the decorated edge value

    public interface EdgeBuilder<V,​E>

    Edge Builder is used inside the GraphBuilder and is responsible to create a fluent way on how to create an edge between two vertices

    Since:
    1.0
    Author:
    Andreas Pointner
    • Method Detail

      • to

        GraphBuilder<V,​E> to​(V value)
        Create an edge to the vertex that decorates value.
        Parameters:
        value - the value of the decorated vertex
        Returns:
        the graph original graph builder
      • toByKey

        GraphBuilder<V,​E> toByKey​(Object key)
        Creates an edge to the vertex that is identified by the key.
        Parameters:
        key - the key which identifies the vertex
        Returns:
        the graph original graph builder
        Throws:
        IllegalStateException - if no vertex with given key was found
      • toData

        EdgeDataBuilder<V,​E> toData​(V value)
        Creates an edge to the vertex that decorates value and returns an EdgeDataBuilder that allows to add a value to the created edge.
        Parameters:
        value - the value of the decorated vertex
        Returns:
        a EdgeDataBuilder
      • toWith

        EdgeWithBuilder<V,​E> toWith​(V value)
        Creates an edge to the vertex that decorates value and returns an EdgeWithBuilder that allows to add a callback method, that is called with the created edge. This allows to e.g. add MetaTags.
        Parameters:
        value - the value of the decorated vertex
        Returns:
        a EdgeWithBuilder
      • toWithByKey

        EdgeWithBuilder<V,​E> toWithByKey​(Object key)
        Creates an edge to the vertex that is identified by the key and returns an EdgeWithBuilder that allows to add a callback method, that is called with the created edge. This allows to e.g. add MetaTags.
        Parameters:
        key - the key which identifies the vertex
        Returns:
        a EdgeWithBuilder
        Throws:
        IllegalStateException - if no vertex with given key was found