/**
* Container for the “lastGoodVersion” field.
*
- * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
+ * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
* @version $Id$
*/
public class Version {
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