Class TinkerElement
java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
- All Implemented Interfaces:
Element
- Direct Known Subclasses:
TinkerEdge,TinkerVertex,TinkerVertexProperty
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTinkerElement(Object id, String label) protectedTinkerElement(Object id, String label, long currentVersion) -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectclone()protected static IllegalStateExceptionelementAlreadyRemoved(Class<? extends Element> clazz, Object id) booleaninthashCode()id()Gets the unique identifier for the graphElement.label()Gets the label for the graphElementwhich helps categorize it.longversion()
-
Field Details
-
id
-
label
-
removed
protected boolean removed -
currentVersion
protected long currentVersion
-
-
Constructor Details
-
TinkerElement
-
TinkerElement
-
-
Method Details
-
hashCode
public int hashCode() -
clone
-
id
Description copied from interface:ElementGets the unique identifier for the graphElement. -
label
Description copied from interface:ElementGets the label for the graphElementwhich helps categorize it. -
equals
-
version
public long version() -
elementAlreadyRemoved
protected static IllegalStateException elementAlreadyRemoved(Class<? extends Element> clazz, Object id)
-