@Deprecated public class Node extends GraphEntity
id, propertyMap| Constructor and Description |
|---|
Node()
Deprecated.
|
Node(int labelsCapacity,
int propertiesCapacity)
Deprecated.
Use this constructor to reduce memory allocations
when labels or properties are added to the node
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String label)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
String |
getLabel(int index)
Deprecated.
|
int |
getNumberOfLabels()
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
removeLabel(String label)
Deprecated.
|
String |
toString()
Deprecated.
|
addProperty, addProperty, getEntityPropertyNames, getId, getNumberOfProperties, getProperty, removeProperty, setIdpublic Node()
public Node(int labelsCapacity,
int propertiesCapacity)
labelsCapacity - preallocate the capacity for the node labelspropertiesCapacity - preallocate the capacity for the propertiespublic void addLabel(String label)
label - - a label to be addpublic void removeLabel(String label)
label - - a label to be removedpublic String getLabel(int index)
index - - label indexIndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= getNumberOfLabels())public int getNumberOfLabels()
public boolean equals(Object o)
equals in class GraphEntitypublic int hashCode()
hashCode in class GraphEntitypublic String toString()
toString in class GraphEntityCopyright © 2024. All rights reserved.