public class DetachedProperty<V> extends java.lang.Object implements Property, java.io.Serializable, Attachable<Property<V>>
Property.Exceptions| Modifier | Constructor and Description |
|---|---|
protected |
DetachedProperty(Property<V> property) |
|
DetachedProperty(java.lang.String key,
V value,
Element element) |
| Modifier and Type | Method and Description |
|---|---|
Property<V> |
attach(Graph hostGraph) |
Property<V> |
attach(Vertex hostVertex) |
Element |
element()
Get the element that this property is associated with.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
boolean |
isPresent()
Whether the property is empty or not.
|
java.lang.String |
key()
The key of the property.
|
void |
remove()
Remove the property from the associated element.
|
java.lang.String |
toString() |
V |
value()
The value of the property.
|
public boolean isPresent()
Propertypublic java.lang.String key()
Propertypublic Element element()
Propertyelement in interface PropertyVertex, Edge, or VertexProperty).public void remove()
Propertypublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Property<V> attach(Vertex hostVertex)
attach in interface Attachable<Property<V>>Copyright © 2013-2015 TinkerPop. All Rights Reserved.