Skip to content

Commit

Permalink
Override the setParam method #56
Browse files Browse the repository at this point in the history
  • Loading branch information
zjzxiaohei committed Jul 29, 2024
1 parent a259164 commit 5517f83
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public Map<String, Value> getParams() {
);
}

@Override
public void setParam(String paramName, Value value) {
if (paramName.equals(lParamName)) l = value;
else if (paramName.equals(nParamName)) n = value;
else if (paramName.equals(deltaParamName)) delta = value;
else throw new RuntimeException("Unrecognised parameter name: " + paramName);
}


}

0 comments on commit 5517f83

Please sign in to comment.