From b0377686896262ab160fdc01fdc340f0b1ce7d5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 31 Aug 2012 10:46:26 +0200 Subject: [PATCH] Implement toString(). --- src/main/java/de/todesbaum/util/freenet/fcp2/Node.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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()); + } + } -- 2.7.4