From 8b2627ce767579eb616e262b3f45f810a88ec200 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 30 Apr 2020 22:12:52 +0200 Subject: [PATCH] Progress: allow a map of values --- Progress.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) 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; -- 2.27.0