Implement toString method
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 29 Apr 2015 18:10:50 +0000 (20:10 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 29 Apr 2015 18:10:50 +0000 (20:10 +0200)
src/main/java/net/pterodactylus/xdcc/data/Pack.java

index c41694f..1372221 100644 (file)
@@ -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());
+       }
+
 }