X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=Progress.java;h=748d4a666c377123ff2eadd29c840ec4baf402e5;hb=039277a71df53372192214f46fe5ad4a47937dfa;hp=2c6cb1e1b951a4da86c3017eca23ff72977646d0;hpb=69155ad502c72f9c176ff672e184bf5addf914b3;p=nikiroo-utils.git 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;