From: Niki Roo Date: Thu, 30 Apr 2020 20:12:52 +0000 (+0200) Subject: Progress: allow a map of values X-Git-Tag: fanfix-swing-1.1.0~40 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=a765e5d0951bc93bc1138660ff5d304b8cdea38a;p=fanfix-swing.git Progress: allow a map of values --- diff --git a/src/be/nikiroo/utils/Progress.java b/src/be/nikiroo/utils/Progress.java index 2c6cb1e1..748d4a66 100644 --- a/src/be/nikiroo/utils/Progress.java +++ b/src/be/nikiroo/utils/Progress.java @@ -447,19 +447,6 @@ public class Progress { } } - /** - * Set the given value for the given key on this {@link Progress} and it's - * children. - * - * @param key - * the key - * @param value - * the value - */ - public void put(String key, String value) { - map.put(key, value); - } - /** * Set the given value for the given key on this {@link Progress} and it's * children. @@ -474,7 +461,8 @@ public class Progress { } /** - * Return the value associated with this key if any, NULL if not. + * Return the value associated with this key as a {@link String} if any, + * NULL if not. *

* If the value is not NULL but not a {@link String}, it will be converted * via {@link Object#toString()}. @@ -484,7 +472,7 @@ public class Progress { * * @return the value or NULL */ - public String get(String key) { + public String getString(Object key) { Object value = map.get(key); if (value == null) { return null;