public class VertexBuilderImpl<ID> extends GraphBuilderImpl<ID> implements VertexBuilder<ID>
Constructor and Description |
---|
VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id) |
VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id, boolean isIgnored) |
Modifier and Type | Method and Description |
---|---|
VertexBuilder<ID> |
addLabel(java.lang.String label)
Adds the given label to this vertex
|
boolean |
equals(java.lang.Object o) |
ID |
getId()
Gets the id of the element (vertex or edge) this builder belongs to
|
int |
hashCode() |
boolean |
isIgnored()
Whether this vertex builder ignores method calls
true or if it performs calls as usual false . |
VertexBuilder<ID> |
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this vertex with the given
key to the given value . |
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, resetEdge, resetVertex, resetVertex, setConfigParameter, setDataSourceVersion, toString
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, resetEdge, resetVertex, resetVertex, setConfigParameter, setDataSourceVersion, setRetainEdgeIds, setRetainIds, setRetainVertexIds
public VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id)
public VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id, boolean isIgnored)
public VertexBuilder<ID> addLabel(java.lang.String label)
VertexBuilder
addLabel
in interface VertexBuilder<ID>
label
- the label to be addedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public ID getId()
VertexBuilder
getId
in interface VertexBuilder<ID>
public int hashCode()
hashCode
in class java.lang.Object
public boolean isIgnored()
VertexBuilder
true
or if it performs calls as usual false
. Some issues, such as incompatible changes in a changeset, can be configured to be ignored. In that case, additional method calls on the returned vertex builder object will be ignored.isIgnored
in interface VertexBuilder<ID>
public VertexBuilder<ID> setProperty(java.lang.String key, java.lang.Object value)
VertexBuilder
key
to the given value
. The first time this method is called, the type of value
defines the type of the property.setProperty
in interface VertexBuilder<ID>
key
- the property keyvalue
- the value of the vertex property