Package com.kosdev.kos.commons.util
Class NodeId
java.lang.Object
com.kosdev.kos.commons.util.NodeId
A nodeId is the combination of a node type and node name. This class
allows a nodeId to be created from the constituent parts or from a
string representation of a nodeId.
- Since:
- 1
- Version:
- 1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Return the id which is the composition of the nodeType and nodeName.inthashCode()voidvoidsetNodeName(String nodeName) voidsetNodeType(String nodeType) toString()
-
Constructor Details
-
NodeId
Create a newNodeIdfrom a string representation.- Parameters:
str-- Since:
- 1
-
NodeId
Create a newNodeIdfrom a nodeType and nodeName.- Parameters:
nodeType- the node typenodeName- the node name- Since:
- 1
-
-
Method Details
-
getId
Return the id which is the composition of the nodeType and nodeName. This is equivalent totoString().- Since:
- 1
-
toString
-
getNodeType
-
getNodeName
-
setNodeType
-
setNodeName
-
setId
-
equals
-
hashCode
public int hashCode()
-