diff --git a/src/main/java/io/cryostat/agent/model/KeyValue.java b/src/main/java/io/cryostat/agent/model/KeyValue.java index 178d13d7..46c1c54f 100644 --- a/src/main/java/io/cryostat/agent/model/KeyValue.java +++ b/src/main/java/io/cryostat/agent/model/KeyValue.java @@ -18,8 +18,11 @@ import java.util.Objects; public class KeyValue { - private final String key; - private final String value; + + private String key; + private String value; + + KeyValue() {} public KeyValue(String key, String value) { this.key = Objects.requireNonNull(key); @@ -34,6 +37,14 @@ public String getValue() { return value; } + void setKey(String key) { + this.key = key; + } + + void setValue(String value) { + this.value = value; + } + @Override public int hashCode() { return Objects.hash(key, value);