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, setId
public 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 GraphEntity
public int hashCode()
hashCode
in class GraphEntity
public String toString()
toString
in class GraphEntity
Copyright © 2020 RedisLabs. All rights reserved.