Class ComputerGraph.ComputerProperty<V>

java.lang.Object
org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerProperty<V>
All Implemented Interfaces:
Property<V>, WrappedProperty<Property<V>>
Enclosing class:
ComputerGraph

public class ComputerGraph.ComputerProperty<V> extends Object implements Property<V>, WrappedProperty<Property<V>>
  • Constructor Details

    • ComputerProperty

      public ComputerProperty(Property<V> property)
  • Method Details

    • key

      public String key()
      Description copied from interface: Property
      The key of the property.
      Specified by:
      key in interface Property<V>
      Returns:
      The property key
    • value

      public V value() throws NoSuchElementException
      Description copied from interface: Property
      The value of the property.
      Specified by:
      value in interface Property<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.
      Specified by:
      isPresent in interface Property<V>
      Returns:
      True if the property exists, else false
    • element

      public Element element()
      Description copied from interface: Property
      Get the element that this property is associated with.
      Specified by:
      element in interface Property<V>
      Returns:
      The element associated with this property (i.e. Vertex, Edge, or VertexProperty).
    • remove

      public void remove()
      Description copied from interface: Property
      Remove the property from the associated element.
      Specified by:
      remove in interface Property<V>
    • getBaseProperty

      public Property<V> getBaseProperty()
      Specified by:
      getBaseProperty in interface WrappedProperty<V>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object