Class ReferenceProperty<V>
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceProperty<V>
- All Implemented Interfaces:
Serializable,Property<V>,Attachable<Property<V>>
public class ReferenceProperty<V>
extends Object
implements Attachable<Property<V>>, Serializable, Property<V>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.MethodNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Property
Property.Exceptions -
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
logger -
Constructor Summary
ConstructorsConstructorDescriptionReferenceProperty(String key, V value) ReferenceProperty(Property<V> property) -
Method Summary
Modifier and TypeMethodDescriptionelement()Get the element that this property is associated with.booleanget()Get the raw object trying to be attached.inthashCode()booleanWhether the property is empty or not.key()The key of the property.voidremove()Remove the property from the associated element.toString()value()The value of the property.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attachMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Property
ifPresent, orElse, orElseGet, orElseThrow
-
Constructor Details
-
ReferenceProperty
-
ReferenceProperty
-
-
Method Details
-
get
Description copied from interface:AttachableGet the raw object trying to be attached.- Specified by:
getin interfaceAttachable<V>- Returns:
- the raw object to attach
-
hashCode
public int hashCode() -
toString
-
equals
-
key
Description copied from interface:PropertyThe key of the property. -
value
Description copied from interface:PropertyThe value of the property.- Specified by:
valuein interfaceProperty<V>- Returns:
- The property value
- Throws:
NoSuchElementException- thrown if the property is empty
-
isPresent
public boolean isPresent()Description copied from interface:PropertyWhether the property is empty or not. -
element
Description copied from interface:PropertyGet the element that this property is associated with. -
remove
public void remove()Description copied from interface:PropertyRemove the property from the associated element.
-