Package science.aist.gtf.graph.builder
Interface VertexBuilderWith<V,E>
-
- Type Parameters:
V- the type of the decorated vertex valueE- the type of the decorated edge value
public interface VertexBuilderWith<V,E>VertexBuilderWith that is used inside
GraphBuilderand allows to add a callback method to the vertex creation method- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphBuilder<V,E>with(Consumer<Vertex<V,E>> callback)Adds a callback method, that is called once the vertex is created.
-
-
-
Method Detail
-
with
GraphBuilder<V,E> with(Consumer<Vertex<V,E>> callback)
Adds a callback method, that is called once the vertex is created. This allows adding additional information to the vertex, such asMetaTags. Note: This method is also called if a cached instance of a vertex is reused, which could potentially already have specific information set.- Parameters:
callback- the callback method to be executed- Returns:
- the instance of the original graph builder
-
-