From: Niki Roo Date: Thu, 30 Apr 2020 20:12:52 +0000 (+0200) Subject: Progress: allow a map of values X-Git-Tag: fanfix-3.1.2~13^2 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=8b2627ce767579eb616e262b3f45f810a88ec200;p=fanfix.git Progress: allow a map of values --- diff --git a/Progress.java b/Progress.java index 2c6cb1e..748d4a6 100644 --- a/Progress.java +++ b/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;