public class DetachedVertexProperty<V> extends DetachedElement<VertexProperty<V>> implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.Exceptions
Attachable.Exceptions, Attachable.Method
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)
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, property
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, graph, label
ifPresent, orElse, orElseGet, orElseThrow
id, keys, property, property, value, values
attach
protected 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()
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()
Property
public boolean equals(Object object)
equals
in class DetachedElement<VertexProperty<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<VertexProperty<V>>
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.