From b03fa3d20f394bbd953f6733946b6758aed69faf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 29 Apr 2015 20:10:50 +0200 Subject: [PATCH] Implement toString method --- src/main/java/net/pterodactylus/xdcc/data/Pack.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/pterodactylus/xdcc/data/Pack.java b/src/main/java/net/pterodactylus/xdcc/data/Pack.java index c41694f..1372221 100644 --- a/src/main/java/net/pterodactylus/xdcc/data/Pack.java +++ b/src/main/java/net/pterodactylus/xdcc/data/Pack.java @@ -103,4 +103,9 @@ public class Pack { return id().hashCode() ^ name().hashCode(); } + @Override + public String toString() { + return String.format("%s [%s] %s", id(), size(), name()); + } + } -- 2.7.4