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()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
addLabel, dropLabel, dropLabels, graph, keys, labels, properties, property, property, propertyMap, remove, value, values
-
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)
-