From 7d276e5fb9dcd62b6be651f572964788fac8131a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 18 Mar 2012 02:13:30 +0100 Subject: [PATCH] Override toString() to allow simple display in a JList. --- src/de/todesbaum/util/freenet/fcp2/PriorityClass.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java b/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java index 729acc1..623bc5b 100644 --- a/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java +++ b/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java @@ -110,4 +110,16 @@ public final class PriorityClass { return null; } + // + // OBJECT METHODS + // + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return name; + } + } -- 2.7.4