public class TinkerVertexProperty<V> extends TinkerElement implements org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.apache.tinkerpop.gremlin.structure.Property> |
properties |
id, label, removed| Constructor and Description |
|---|
TinkerVertexProperty(Object id,
TinkerVertex vertex,
String key,
V value,
Object... propertyKeyValues)
Use this constructor to construct
VertexProperty instances for TinkerGraph where the id
can 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 the
Graph. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tinkerpop.gremlin.structure.Vertex |
element() |
boolean |
equals(Object object) |
Object |
id() |
boolean |
isPresent() |
String |
key() |
Set<String> |
keys() |
<U> Iterator<org.apache.tinkerpop.gremlin.structure.Property<U>> |
properties(String... propertyKeys) |
<U> org.apache.tinkerpop.gremlin.structure.Property<U> |
property(String key) |
<U> org.apache.tinkerpop.gremlin.structure.Property<U> |
property(String key,
U value) |
void |
remove() |
String |
toString() |
V |
value() |
elementAlreadyRemoved, hashCode, labelclone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, graph, labelpublic TinkerVertexProperty(TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
Graph. It will always just use a
Long for its identifier. This is useful for constructing a VertexProperty for usage
with TinkerGraphComputerView.public TinkerVertexProperty(Object id, TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
VertexProperty instances for TinkerGraph where the id
can be explicitly set and validated against the expected data type.public String key()
key in interface org.apache.tinkerpop.gremlin.structure.Property<V>public V value()
value in interface org.apache.tinkerpop.gremlin.structure.Property<V>public boolean isPresent()
isPresent in interface org.apache.tinkerpop.gremlin.structure.Property<V>public Object id()
id in interface org.apache.tinkerpop.gremlin.structure.Elementid in class TinkerElementpublic boolean equals(Object object)
equals in class TinkerElementpublic Set<String> keys()
keys in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <U> org.apache.tinkerpop.gremlin.structure.Property<U> property(String key)
property in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <U> org.apache.tinkerpop.gremlin.structure.Property<U> property(String key, U value)
property in interface org.apache.tinkerpop.gremlin.structure.Elementpublic org.apache.tinkerpop.gremlin.structure.Vertex element()
public void remove()
remove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in interface org.apache.tinkerpop.gremlin.structure.Property<V>Copyright © 2013–2018 Apache Software Foundation. All rights reserved.