public class DetachedVertexProperty<V> extends DetachedElement<Property<V>> implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.Exceptions
Modifier and Type | Field and Description |
---|---|
protected V |
value |
protected DetachedVertex |
vertex |
id, label, properties
DEFAULT_LABEL
Modifier | Constructor and Description |
---|---|
|
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 |
---|---|
static <V> VertexProperty<V> |
addTo(Vertex vertex,
DetachedVertexProperty<V> detachedVertexProperty) |
VertexProperty<V> |
attach(Graph hostGraph) |
VertexProperty<V> |
attach(Vertex hostVertex) |
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()
Removes the
Element from the graph. |
String |
toString() |
V |
value()
The value of the property.
|
graph, hashCode, id, label, property, property
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, graph, label
ifPresent, orElse, orElseGet, orElseThrow
protected V value
protected transient DetachedVertex vertex
protected DetachedVertexProperty(VertexProperty<V> vertexProperty, boolean withProperties)
public boolean isPresent()
Property
public Vertex element()
VertexProperty
Vertex
that owns this VertexProperty
.element
in interface Property<V>
element
in interface VertexProperty<V>
Vertex
, Edge
, or VertexProperty
).public void remove()
Element
Element
from the graph.public boolean equals(Object object)
equals
in class DetachedElement<Property<V>>
public VertexProperty<V> attach(Vertex hostVertex)
attach
in interface Attachable<Property<V>>
public VertexProperty<V> attach(Graph hostGraph)
attach
in interface Attachable<Property<V>>
public <U> Iterator<Property<U>> properties(String... propertyKeys)
Element
Iterator
of properties.properties
in interface Element
properties
in interface VertexProperty<V>
properties
in class DetachedElement<Property<V>>
public static <V> VertexProperty<V> addTo(Vertex vertex, DetachedVertexProperty<V> detachedVertexProperty)
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.