more improvements to command processing

This commit is contained in:
Jonathan Shook
2020-04-22 07:24:34 -05:00
parent 908ab7c1a3
commit 113932aed5
9 changed files with 226 additions and 82 deletions

View File

@@ -21,12 +21,14 @@ import java.util.HashMap;
import java.util.Map;
public class ScriptParams extends HashMap<String,String> {
public Map<String,String> withOverrides(Map<String,String> overrides) {
HashMap<String,String> result = new HashMap<>();
result.putAll(this);
result.putAll(overrides);
return result;
}
public Map<String,String> withDefaults(Map<String,String> defaults) {
HashMap<String,String> result = new HashMap<>();
result.putAll(defaults);