Class TinkerVertexProperty<V>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
-
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerVertexProperty<V>
-
- All Implemented Interfaces:
Element,Property<V>,VertexProperty<V>
public class TinkerVertexProperty<V> extends TinkerElement implements VertexProperty<V>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
VertexProperty.Cardinality, VertexProperty.Exceptions
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Property>properties-
Fields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
id, label, removed
-
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
DEFAULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description TinkerVertexProperty(Object id, TinkerVertex vertex, String key, V value, Object... propertyKeyValues)Use this constructor to constructVertexPropertyinstances forTinkerGraphwhere theidcan be explicitly set and validated against the expected data type.TinkerVertexProperty(TinkerVertex vertex, String key, V value, Object... propertyKeyValues)This constructor will not validate the ID type against theGraph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vertexelement()booleanequals(Object object)Objectid()booleanisPresent()Stringkey()Set<String>keys()<U> Iterator<Property<U>>properties(String... propertyKeys)<U> Property<U>property(String key)<U> Property<U>property(String key, U value)voidremove()StringtoString()Vvalue()-
Methods inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
elementAlreadyRemoved, hashCode, label
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Property
ifPresent, orElse, orElseGet, orElseThrow
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
graph, label
-
-
-
-
Constructor Detail
-
TinkerVertexProperty
public TinkerVertexProperty(TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
This constructor will not validate the ID type against theGraph. It will always just use aLongfor its identifier. This is useful for constructing aVertexPropertyfor usage withTinkerGraphComputerView.
-
TinkerVertexProperty
public TinkerVertexProperty(Object id, TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
Use this constructor to constructVertexPropertyinstances forTinkerGraphwhere theidcan be explicitly set and validated against the expected data type.
-
-
Method Detail
-
id
public Object id()
- Specified by:
idin interfaceElement- Overrides:
idin classTinkerElement
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classTinkerElement
-
element
public Vertex element()
-
remove
public void remove()
-
properties
public <U> Iterator<Property<U>> properties(String... propertyKeys)
- Specified by:
propertiesin interfaceElement- Specified by:
propertiesin interfaceVertexProperty<V>
-
-