E
- the type of the base elementG
- the type of the graph that owns this element@ParametersAreNonnullByDefault public abstract class IdElement<E extends com.tinkerpop.blueprints.Element,G extends IdGraph<G>> extends AbstractGraphBasedObject<E,G> implements com.tinkerpop.blueprints.Element
Element
able to map the result of each method call to a dedicated implementation.
Re-implemented from com.tinkerpop.blueprints.util.wrappers.id.IdElement
.
Modifier and Type | Field and Description |
---|---|
protected boolean |
propertyBased
true if the graph supports property-based identifiers. |
graph
base
Modifier | Constructor and Description |
---|---|
protected |
IdElement(E baseElement,
G graph,
boolean propertyBased)
Constructs a new
IdElement . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Object |
getId() |
<T> T |
getProperty(String key) |
Set<String> |
getPropertyKeys() |
int |
hashCode() |
<T> T |
removeProperty(String key) |
void |
setProperty(String key,
Object value) |
getBaseElement
protected final boolean propertyBased
true
if the graph supports property-based identifiers.public <T> T getProperty(String key)
getProperty
in interface com.tinkerpop.blueprints.Element
public Set<String> getPropertyKeys()
getPropertyKeys
in interface com.tinkerpop.blueprints.Element
public void setProperty(String key, Object value)
setProperty
in interface com.tinkerpop.blueprints.Element
public <T> T removeProperty(String key)
removeProperty
in interface com.tinkerpop.blueprints.Element
public Object getId()
getId
in interface com.tinkerpop.blueprints.Element
Copyright © 2013–2019 Atlanmod. All rights reserved.