public class ComputerGraph.ComputerVertexProperty<V> extends ComputerGraph.ComputerElement implements VertexProperty<V>, WrappedVertexProperty<VertexProperty<V>>
VertexProperty.Cardinality, VertexProperty.Exceptions
DEFAULT_LABEL
Constructor and Description |
---|
ComputerVertexProperty(VertexProperty<V> vertexProperty) |
Modifier and Type | Method and Description |
---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty . |
VertexProperty<V> |
getBaseVertexProperty() |
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 where the propertyKeys is meant to be a filter on the available
keys. |
V |
value()
The value of the property.
|
equals, getBaseElement, graph, hashCode, id, keys, label, property, property, remove, toString, value, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, graph, label
public ComputerVertexProperty(VertexProperty<V> vertexProperty)
public V value() throws NoSuchElementException
Property
value
in interface Property<V>
NoSuchElementException
- thrown if the property is emptypublic 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 <U> Iterator<Property<U>> properties(String... propertyKeys)
Element
Iterator
of properties where the propertyKeys
is meant to be a filter on the available
keys. If no keys are provide then return all the properties.properties
in interface Element
properties
in interface VertexProperty<V>
properties
in class ComputerGraph.ComputerElement
public VertexProperty<V> getBaseVertexProperty()
getBaseVertexProperty
in interface WrappedVertexProperty<VertexProperty<V>>
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.