@Deprecated
public abstract class GraphEntity
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
id
Deprecated.
|
protected java.util.Map<java.lang.String,Property<?>> |
propertyMap
Deprecated.
|
| Constructor and Description |
|---|
GraphEntity()
Deprecated.
|
GraphEntity(int propertiesCapacity)
Deprecated.
Use this constructor to reduce memory allocations
when properties are added to the edge
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property property)
Deprecated.
Add a property to the entity
|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Deprecated.
Adds a property to the entity, by composing name, type and value to a property object
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.util.Set<java.lang.String> |
getEntityPropertyNames()
Deprecated.
|
long |
getId()
Deprecated.
|
int |
getNumberOfProperties()
Deprecated.
|
Property |
getProperty(java.lang.String propertyName)
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
removeProperty(java.lang.String name)
Deprecated.
|
void |
setId(long id)
Deprecated.
|
abstract java.lang.String |
toString()
Deprecated.
|
protected long id
protected final java.util.Map<java.lang.String,Property<?>> propertyMap
public GraphEntity()
public GraphEntity(int propertiesCapacity)
propertiesCapacity - preallocate the capacity for the propertiespublic long getId()
public void setId(long id)
id - - entity id to be setpublic void addProperty(java.lang.String name,
java.lang.Object value)
name - value - public java.util.Set<java.lang.String> getEntityPropertyNames()
public void addProperty(Property property)
property - public int getNumberOfProperties()
public Property getProperty(java.lang.String propertyName)
propertyName - - property name as lookup key (String)public void removeProperty(java.lang.String name)
name - - the name of the property to be removedpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic abstract java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2023. All rights reserved.