Skip to content

Commit

Permalink
Merge pull request #181 from ahrens-lgln/fix_missing_metadata
Browse files Browse the repository at this point in the history
fix: provide metadata field on Condition
  • Loading branch information
kdubb authored Dec 4, 2024
2 parents d0fb9bc + 5ae13d2 commit 72df835
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ public List<String> getGenericTypes() {
private final String name;
private final String expression;
private final Map<String, Parameter> parameters;
private final Map<String, String> metadata;

public Condition(String name, String expression, Map<String, Parameter> parameters) {
public Condition(String name, String expression, Map<String, Parameter> parameters, Map<String, String> metadata) {
this.name = name;
this.expression = expression;
this.parameters = parameters;
this.metadata = metadata;
}

public String getName() {
Expand All @@ -55,6 +57,10 @@ public Map<String, Parameter> getParameters() {
return parameters;
}

public Map<String, String> getMetadata() {
return metadata;
}

@Override
public boolean equals(Object o) {
if (this == o)
Expand Down

0 comments on commit 72df835

Please sign in to comment.