From: David ‘Bombe’ Roden Date: Fri, 31 Aug 2012 08:46:26 +0000 (+0200) Subject: Implement toString(). X-Git-Tag: 0.11^2~13 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b0377686896262ab160fdc01fdc340f0b1ce7d5a;p=jSite.git Implement toString(). --- diff --git a/src/main/java/de/todesbaum/util/freenet/fcp2/Node.java b/src/main/java/de/todesbaum/util/freenet/fcp2/Node.java index d2fa91c..71c2a6e 100644 --- a/src/main/java/de/todesbaum/util/freenet/fcp2/Node.java +++ b/src/main/java/de/todesbaum/util/freenet/fcp2/Node.java @@ -78,4 +78,16 @@ public class Node { return port; } + // + // OBJECT METHODS + // + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return String.format("%s[hostname=%s,port=%d]", getClass().getName(), getHostname(), getPort()); + } + }