Class StarGraph.StarElement<E extends Element>

java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.star.StarGraph.StarElement<E>
All Implemented Interfaces:
Element, Attachable<E>
Direct Known Subclasses:
StarGraph.StarEdge, StarGraph.StarVertex, StarGraph.StarVertexProperty
Enclosing class:
StarGraph

public abstract class StarGraph.StarElement<E extends Element> extends Object implements Element, Attachable<E>
  • Field Details

    • id

      protected final Object id
    • label

      protected String label
  • Constructor Details

    • StarElement

      protected StarElement(Object id, String label)
  • Method Details

    • id

      public Object id()
      Description copied from interface: Element
      Gets the unique identifier for the graph Element.
      Specified by:
      id in interface Element
      Returns:
      The id of the element
    • label

      public String label()
      Description copied from interface: Element
      Gets the label for the graph Element which helps categorize it.
      Specified by:
      label in interface Element
      Returns:
      The label of the element
    • graph

      public Graph graph()
      Description copied from interface: Element
      Get the graph that this element is within.
      Specified by:
      graph in interface Element
      Returns:
      the graph of this element
    • equals

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

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

      public E get()
      Description copied from interface: Attachable
      Get the raw object trying to be attached.
      Specified by:
      get in interface Attachable<E extends Element>
      Returns:
      the raw object to attach