Skip to content

Commit

Permalink
Allow getting by any class type
Browse files Browse the repository at this point in the history
  • Loading branch information
virustotalop committed Aug 1, 2020
1 parent 75b2a04 commit 52fdb13
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ public ConfigurationNode getNode() {
}

public Object get(String path) {
return NodeUtil.parsePath(this.node, path).getValue();
return this.get(path, Object.class);
}

public <T> T get(String path, Class<T> clazz) {
return new NodeHelper<T>(this.node).get(path, clazz);
}

public String getString(String path) {
Expand Down

0 comments on commit 52fdb13

Please sign in to comment.