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:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.AttachableAttachable.Exceptions, Attachable.Method
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.PropertyProperty.Exceptions
 
- 
 - 
Field Summary- 
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachablelogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description ReferenceProperty(String key, V value)ReferenceProperty(Property<V> property)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Elementelement()Get the element that this property is associated with.booleanequals(Object object)Property<V>get()Get the raw object trying to be attached.inthashCode()booleanisPresent()Whether the property is empty or not.Stringkey()The key of the property.voidremove()Remove the property from the associated element.StringtoString()Vvalue()The value of the property.- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachableattach
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.PropertyifPresent, orElse, orElseGet, orElseThrow
 
- 
 
- 
- 
- 
Method Detail- 
getpublic Property<V> get() Description copied from interface:AttachableGet the raw object trying to be attached.- Specified by:
- getin interface- Attachable<V>
- Returns:
- the raw object to attach
 
 - 
valuepublic V value() throws NoSuchElementException Description copied from interface:PropertyThe value of the property.- Specified by:
- valuein interface- Property<V>
- Returns:
- The property value
- Throws:
- NoSuchElementException- thrown if the property is empty
 
 - 
isPresentpublic boolean isPresent() Description copied from interface:PropertyWhether the property is empty or not.
 - 
elementpublic Element element() Description copied from interface:PropertyGet the element that this property is associated with.
 
- 
 
-