Class StarGraph.StarProperty<V>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.util.star.StarGraph.StarProperty<V>
-
- All Implemented Interfaces:
Property<V>
,Attachable<Property<V>>
- Enclosing class:
- StarGraph
public final class StarGraph.StarProperty<V> extends Object implements Property<V>, Attachable<Property<V>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.Method
-
Nested 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element
element()
Get the element that this property is associated with.boolean
equals(Object object)
Property<V>
get()
Get the raw object trying to be attached.int
hashCode()
boolean
isPresent()
Whether the property is empty or not.String
key()
The key of the property.void
remove()
Remove the property from the associated element.String
toString()
V
value()
The value of the property.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attach
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Property
ifPresent, orElse, orElseGet, orElseThrow
-
-
-
-
Method Detail
-
value
public V value() throws NoSuchElementException
Description copied from interface:Property
The value of the property.- Specified by:
value
in interfaceProperty<V>
- Returns:
- The property value
- Throws:
NoSuchElementException
- thrown if the property is empty
-
isPresent
public boolean isPresent()
Description copied from interface:Property
Whether the property is empty or not.
-
element
public Element element()
Description copied from interface:Property
Get the element that this property is associated with.
-
remove
public void remove()
Description copied from interface:Property
Remove the property from the associated element.
-
get
public Property<V> get()
Description copied from interface:Attachable
Get the raw object trying to be attached.- Specified by:
get
in interfaceAttachable<V>
- Returns:
- the raw object to attach
-
-