Package hydra.pg.dsl
Class EdgeTypeBuilder<T>
- java.lang.Object
-
- hydra.pg.dsl.ElementTypeBuilder<T,EdgeType<T>,EdgeTypeBuilder<T>>
-
- hydra.pg.dsl.EdgeTypeBuilder<T>
-
- Type Parameters:
T- the type identifier type
public class EdgeTypeBuilder<T> extends ElementTypeBuilder<T,EdgeType<T>,EdgeTypeBuilder<T>>
A builder object for property graph edge types.
-
-
Field Summary
-
Fields inherited from class hydra.pg.dsl.ElementTypeBuilder
properties
-
-
Constructor Summary
Constructors Constructor Description EdgeTypeBuilder(EdgeLabel label, T id, VertexLabel outLabel, VertexLabel inLabel)Construct the builder object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeType<T>build()Builds and returns the element type with all configured property types.protected EdgeTypeBuilder<T>getThis()Returns the concrete builder instance for fluent method chaining.-
Methods inherited from class hydra.pg.dsl.ElementTypeBuilder
propertiesAsList, property
-
-
-
-
Constructor Detail
-
EdgeTypeBuilder
public EdgeTypeBuilder(EdgeLabel label, T id, VertexLabel outLabel, VertexLabel inLabel)
Construct the builder object.- Parameters:
label- the edge labelid- the type identifieroutLabel- the outgoing vertex labelinLabel- the incoming vertex label
-
-
Method Detail
-
getThis
protected EdgeTypeBuilder<T> getThis()
Description copied from class:ElementTypeBuilderReturns the concrete builder instance for fluent method chaining.- Specified by:
getThisin classElementTypeBuilder<T,EdgeType<T>,EdgeTypeBuilder<T>>- Returns:
- this builder instance
-
build
public EdgeType<T> build()
Description copied from class:ElementTypeBuilderBuilds and returns the element type with all configured property types.- Specified by:
buildin classElementTypeBuilder<T,EdgeType<T>,EdgeTypeBuilder<T>>- Returns:
- the constructed element type
-
-