public class OracleVertexPropertyBase<V> extends java.lang.Object implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.ExceptionsDEFAULT_LABEL| Constructor and Description |
|---|
OracleVertexPropertyBase(OracleVertexBase oracleVertex,
java.lang.String key,
V value)
Constructs a new OracleVertexProperty object
|
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the Vertex that owns this VertexProperty.
|
boolean |
equals(java.lang.Object object)
Validates if the given object is equal to this Vertex property
|
Graph |
graph()
Get the graph that this element is within.
|
int |
hashCode()
Gets the hash code associated to this vertex property object
|
java.lang.Object |
id()
Gets the unique identifier for the Vertex Property
|
boolean |
isPresent()
Return whether the property is empty or not.
|
java.lang.String |
key()
Return the key of the property.
|
java.lang.String |
label()
Gets the label for the graph Element which helps categorize it.
|
<U> java.util.Iterator<Property<U>> |
properties(java.lang.String... propertyKeys)
Get an Iterator of properties.
|
<V> Property<V> |
property(java.lang.String key,
V value)
Add or set a property value for the Element given its key.
|
void |
remove()
Removes the Element from the graph.
|
java.lang.String |
toString()
Returns the String representation of this vertex property
|
V |
value()
Get the value of a Property given it's key.
|
emptyifPresent, orElse, orElseGet, orElseThrowpublic OracleVertexPropertyBase(OracleVertexBase oracleVertex, java.lang.String key, V value)
oracleVertex - the vertex associated to this propertykey - the property namevalue - the property valuepublic Vertex element()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic Graph graph()
graph in interface Elementgraph in interface VertexProperty<V>public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object id()
public boolean isPresent()
public java.lang.String key()
public java.lang.String label()
label in interface Elementlabel in interface VertexProperty<V>public <U> java.util.Iterator<Property<U>> properties(java.lang.String... propertyKeys)
properties in interface Elementproperties in interface VertexProperty<V>public <V> Property<V> property(java.lang.String key, V value)
public void remove()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 - 2018 Oracle and/or its affiliates. All Rights Reserved.