public class Node extends GraphEntity
id, propertyMap| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String label) |
boolean |
equals(Object o) |
String |
getLabel(int index) |
int |
getNumberOfLabels() |
int |
hashCode() |
void |
removeLabel(String label) |
String |
toString() |
addProperty, addProperty, getEntityPropertyNames, getId, getNumberOfProperties, getProperty, removeProperty, setIdpublic 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 © 2022. All rights reserved.