public class TinkerVertexProperty<V> extends TinkerElement implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.Exceptions| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Property> |
properties |
id, label, removedDEFAULT_LABEL| 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 |
|---|---|
Vertex |
element() |
boolean |
equals(Object object) |
Object |
id() |
boolean |
isPresent() |
String |
key() |
Set<String> |
keys() |
<U> Iterator<Property<U>> |
properties(String... propertyKeys) |
<U> Property<U> |
property(String key) |
<U> Property<U> |
property(String key,
U value) |
void |
remove() |
String |
toString() |
V |
value() |
elementAlreadyRemoved, hashCode, labelclone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, graph, labelifPresent, orElse, orElseGet, orElseThrowpublic 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 Object id()
id in interface Elementid in class TinkerElementpublic boolean equals(Object object)
equals in class TinkerElementpublic Vertex element()
public void remove()
public <U> Iterator<Property<U>> properties(String... propertyKeys)
properties in interface Elementproperties in interface VertexProperty<V>Copyright © 2013–2019 Apache Software Foundation. All rights reserved.