Skip to content

Commit

Permalink
Support building configuration based on another configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Mar 25, 2018
1 parent b7f871f commit 4893346
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/cz/cvut/kbss/jsonld/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ public class Configuration {

private final Map<String, String> config = new HashMap<>();

public Configuration() {
}

public Configuration(Configuration other) {
Objects.requireNonNull(other);
config.putAll(other.config);
}

public String get(ConfigParam param) {
Objects.requireNonNull(param);
return get(param.getName());
Expand Down

0 comments on commit 4893346

Please sign in to comment.