X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FVersion.java;h=fe400afb24083496c866e5633013215d4c6518a6;hb=d8eaacfd7b3219f7b94a6d21717fcd1114b1c40d;hp=0bcb28b74854c9741df1f365ba2d89cf6bb3cade;hpb=474a0f39c87d520b0ce8c23ea8e8046441e13ea7;p=jSite2.git diff --git a/src/net/pterodactylus/util/fcp/Version.java b/src/net/pterodactylus/util/fcp/Version.java index 0bcb28b..fe400af 100644 --- a/src/net/pterodactylus/util/fcp/Version.java +++ b/src/net/pterodactylus/util/fcp/Version.java @@ -5,7 +5,7 @@ import java.util.StringTokenizer; /** * Container for the “lastGoodVersion” field. * - * @author David Roden + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> * @version $Id$ */ public class Version { @@ -23,9 +23,9 @@ 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 @@ -107,4 +107,12 @@ public class Version { return buildNumber; } + /** + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return nodeName + "," + treeVersion + "," + protocolVersion + "," + buildNumber; + } + } \ No newline at end of file