Override toString() to allow simple display in a JList.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 18 Mar 2012 01:13:30 +0000 (02:13 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 18 Mar 2012 01:13:30 +0000 (02:13 +0100)
src/de/todesbaum/util/freenet/fcp2/PriorityClass.java

index 729acc1..623bc5b 100644 (file)
@@ -110,4 +110,16 @@ public final class PriorityClass {
                return null;
        }
 
+       //
+       // OBJECT METHODS
+       //
+
+       /**
+        * {@inheritDoc}
+        */
+       @Override
+       public String toString() {
+               return name;
+       }
+
 }