Class TinkerElement
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
-
- All Implemented Interfaces:
Element
- Direct Known Subclasses:
TinkerEdge
,TinkerVertex
,TinkerVertexProperty
public abstract class TinkerElement extends Object implements Element
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TinkerElement(Object id, String label)
protected
TinkerElement(Object id, String label, long currentVersion)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
clone()
protected static IllegalStateException
elementAlreadyRemoved(Class<? extends Element> clazz, Object id)
boolean
equals(Object object)
int
hashCode()
Object
id()
Gets the unique identifier for the graphElement
.String
label()
Gets the label for the graphElement
which helps categorize it.long
version()
-
-
-
Method Detail
-
id
public Object id()
Description copied from interface:Element
Gets the unique identifier for the graphElement
.
-
label
public String label()
Description copied from interface:Element
Gets the label for the graphElement
which helps categorize it.
-
version
public long version()
-
elementAlreadyRemoved
protected static IllegalStateException elementAlreadyRemoved(Class<? extends Element> clazz, Object id)
-
-