public class DetachedVertexProperty<V> extends DetachedElement<VertexProperty<V>> implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.ExceptionsAttachable.Exceptions, Attachable.Method| Modifier and Type | Field and Description |
|---|---|
protected V |
value |
protected DetachedVertex |
vertex |
id, label, propertiesDEFAULT_LABEL| Modifier | Constructor and Description |
|---|---|
|
DetachedVertexProperty(Object id,
String label,
V value,
Map<String,Object> properties)
This constructor is used by GraphSON when deserializing and the
Host is not known. |
|
DetachedVertexProperty(Object id,
String label,
V value,
Map<String,Object> properties,
Vertex vertex) |
protected |
DetachedVertexProperty(VertexProperty<V> vertexProperty,
boolean withProperties) |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty. |
boolean |
equals(Object object) |
boolean |
isPresent()
Whether the property is empty or not.
|
String |
key()
The key of the property.
|
<U> Iterator<Property<U>> |
properties(String... propertyKeys)
Get an
Iterator of properties. |
void |
remove()
Remove the property from the associated element.
|
String |
toString() |
V |
value()
The value of the property.
|
get, graph, hashCode, id, label, property, propertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, graph, labelifPresent, orElse, orElseGet, orElseThrowid, keys, property, property, value, valuesattachprotected V value
protected transient DetachedVertex vertex
protected DetachedVertexProperty(VertexProperty<V> vertexProperty, boolean withProperties)
public DetachedVertexProperty(Object id, String label, V value, Map<String,Object> properties, Vertex vertex)
public boolean isPresent()
Propertypublic Vertex element()
VertexPropertyVertex that owns this VertexProperty.element in interface Property<V>element in interface VertexProperty<V>Vertex, Edge, or VertexProperty).public void remove()
Propertypublic boolean equals(Object object)
equals in class DetachedElement<VertexProperty<V>>public <U> Iterator<Property<U>> properties(String... propertyKeys)
ElementIterator of properties.properties in interface Elementproperties in interface VertexProperty<V>properties in class DetachedElement<VertexProperty<V>>Copyright © 2013–2015 Apache Software Foundation. All rights reserved.