public final class Neo4jVertexProperty<V> extends Object implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.Exceptions| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected V |
value |
protected Neo4jVertex |
vertex |
protected Neo4jNode |
vertexPropertyNode |
DEFAULT_LABEL| Constructor and Description |
|---|
Neo4jVertexProperty(Neo4jVertex vertex,
Neo4jNode vertexPropertyNode) |
Neo4jVertexProperty(Neo4jVertex vertex,
String key,
V value) |
Neo4jVertexProperty(Neo4jVertex vertex,
String key,
V value,
Neo4jNode vertexPropertyNode) |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty. |
boolean |
equals(Object object) |
int |
hashCode() |
Object |
id()
Gets the unique identifier for the graph
Element. |
boolean |
isPresent()
Whether the property is empty or not.
|
String |
key()
The key of the property.
|
Set<String> |
keys()
Get the keys of the properties associated with this element.
|
<U> Iterator<Property<U>> |
properties(String... propertyKeys)
Get an
Iterator of properties. |
<U> Property<U> |
property(String key,
U value)
Add or set a property value for the
Element given its key. |
void |
remove()
Remove the property from the associated element.
|
String |
toString() |
V |
value()
The value of the property.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, graph, labelifPresent, orElse, orElseGet, orElseThrowprotected final Neo4jVertex vertex
protected final String key
protected final V value
protected Neo4jNode vertexPropertyNode
public Neo4jVertexProperty(Neo4jVertex vertex, String key, V value)
public Neo4jVertexProperty(Neo4jVertex vertex, String key, V value, Neo4jNode vertexPropertyNode)
public Neo4jVertexProperty(Neo4jVertex vertex, Neo4jNode vertexPropertyNode)
public Vertex element()
VertexPropertyVertex that owns this VertexProperty.element in interface Property<V>element in interface VertexProperty<V>Vertex, Edge, or VertexProperty).public Object id()
ElementElement.public V value() throws NoSuchElementException
Propertyvalue in interface Property<V>NoSuchElementException - thrown if the property is emptypublic boolean isPresent()
Propertypublic <U> Iterator<Property<U>> properties(String... propertyKeys)
VertexPropertyIterator of properties.properties in interface Elementproperties in interface VertexProperty<V>public <U> Property<U> property(String key, U value)
ElementElement given its key.public void remove()
Propertypublic Set<String> keys()
ElementHashSet.Copyright © 2013–2018 Apache Software Foundation. All rights reserved.