@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(java.lang.String label)
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.lang.String |
getLabel(int index)
Deprecated.
|
int |
getNumberOfLabels()
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
removeLabel(java.lang.String label)
Deprecated.
|
java.lang.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(java.lang.String label)
label - - a label to be addpublic void removeLabel(java.lang.String label)
label - - a label to be removedpublic java.lang.String getLabel(int index)
index - - label indexjava.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= getNumberOfLabels())public int getNumberOfLabels()
public boolean equals(java.lang.Object o)
equals in class GraphEntitypublic int hashCode()
hashCode in class GraphEntitypublic java.lang.String toString()
toString in class GraphEntityCopyright © 2024. All rights reserved.