Package science.aist.gtf.graph.builder
Interface EdgeDataBuilder<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- the type of the decorated edge value
public interface EdgeDataBuilder<V,E>
EdgeDataBuilder is used inside
EdgeBuilder
and is used to add the data element (decorated element) to the created edge.- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphBuilder<V,E>
data(E value)
Add the given value to the edge (which can be retrieved usingEdge.getElement()
and returns the originalGraphBuilder
EdgeWithBuilder<V,E>
dataWith(E value)
Add the given value to the edge (which can be retrieved usingEdge.getElement()
and returns anEdgeWithBuilder
that allows to add a callback method, that is called with the created edge.
-
-
-
Method Detail
-
data
GraphBuilder<V,E> data(E value)
Add the given value to the edge (which can be retrieved usingEdge.getElement()
and returns the originalGraphBuilder
- Parameters:
value
- the value to be added- Returns:
- the original
GraphBuilder
-
dataWith
EdgeWithBuilder<V,E> dataWith(E value)
Add the given value to the edge (which can be retrieved usingEdge.getElement()
and returns anEdgeWithBuilder
that allows to add a callback method, that is called with the created edge. This allows to e.g. addMetaTag
s.- Parameters:
value
- the value to be added- Returns:
- a
EdgeWithBuilder
-
-