From: David ‘Bombe’ Roden Date: Wed, 29 Apr 2015 18:10:50 +0000 (+0200) Subject: Implement toString method X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b03fa3d20f394bbd953f6733946b6758aed69faf;p=xudocci.git Implement toString method --- 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()); + } + }