From bcb9cebfa11ffbfee8ee8e5579edeed302e2d784 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 4 Apr 2008 21:53:28 +0000 Subject: [PATCH] make two more methods public add toString() git-svn-id: http://trooper/svn/projects/jSite/trunk@588 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/core/Node.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/net/pterodactylus/jsite/core/Node.java b/src/net/pterodactylus/jsite/core/Node.java index e0d61f7..854a668 100644 --- a/src/net/pterodactylus/jsite/core/Node.java +++ b/src/net/pterodactylus/jsite/core/Node.java @@ -102,7 +102,7 @@ public class Node { * @return the sameMachine true if, and only if, the node is * running on the same machine as jSite */ - boolean isSameMachine() { + public boolean isSameMachine() { return sameMachine; } @@ -113,8 +113,16 @@ public class Node { * true if the node is running on the same machine * as jSite, false otherwise */ - void setSameMachine(boolean sameMachine) { + public void setSameMachine(boolean sameMachine) { this.sameMachine = sameMachine; } + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return name + " (" + hostname + ((port == 9481) ? ("") : (":" + port)) + ")"; + } + } -- 2.7.4