private final int buildNumber;
/**
- * Creates a new Version from the given string. The string consists of
- * the four required fields node name, tree version, protocol version,
- * and build number, separated by a comma.
+ * Creates a new Version from the given string. The string consists of the
+ * four required fields node name, tree version, protocol version, and build
+ * number, separated by a comma.
*
* @param version
* The version string
return buildNumber;
}
+ /**
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ return nodeName + "," + treeVersion + "," + protocolVersion + "," + buildNumber;
+ }
+
}
\ No newline at end of file