public final class EmptyVertexProperty<V> extends Object implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.ExceptionsDEFAULT_LABEL| Constructor and Description | 
|---|
EmptyVertexProperty()  | 
| Modifier and Type | Method and Description | 
|---|---|
Vertex | 
element()
Gets the  
Vertex that owns this VertexProperty. | 
Graph | 
graph()
Get the graph that this element is within. 
 | 
Object | 
id()
Gets the unique identifier for the graph  
Element. | 
static <U> VertexProperty<U> | 
instance()  | 
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. | 
<U> Property<U> | 
property(String key)
Get a  
Property for the Element given its key. | 
<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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitempty, labelifPresent, orElse, orElseGet, orElseThrowpublic static <U> VertexProperty<U> instance()
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 Graph graph()
VertexPropertygraph in interface Elementgraph in interface VertexProperty<V>public <U> Property<U> property(String key)
ElementProperty for the Element given its key.
 The default implementation calls the raw Element.properties(java.lang.String...).public <U> Property<U> property(String key, U value)
ElementElement given its key.public V value() throws NoSuchElementException
Propertyvalue in interface Property<V>NoSuchElementException - thrown if the property is emptypublic boolean isPresent()
Propertypublic void remove()
Propertypublic <U> Iterator<Property<U>> properties(String... propertyKeys)
VertexPropertyIterator of properties.properties in interface Elementproperties in interface VertexProperty<V>Copyright © 2013–2018 Apache Software Foundation. All rights reserved.