From 3381ab0d02b482ce65bde4955c3b6b1b2bdb4440 Mon Sep 17 00:00:00 2001 From: "Florian (Feuermagier)" Date: Sun, 12 Jan 2025 14:05:28 +0100 Subject: [PATCH] add forgotten method --- .../de/firemage/autograder/api/AbstractLinter.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/autograder-api/src/main/java/de/firemage/autograder/api/AbstractLinter.java b/autograder-api/src/main/java/de/firemage/autograder/api/AbstractLinter.java index 1e20b805..de2a1c7d 100644 --- a/autograder-api/src/main/java/de/firemage/autograder/api/AbstractLinter.java +++ b/autograder-api/src/main/java/de/firemage/autograder/api/AbstractLinter.java @@ -99,6 +99,16 @@ public Builder conditionalOverride(AbstractProblemType problemType, String key, return this; } + /** + * Sets all conditional overrides, discarding all previously set conditional overrides. + * @param conditionalOverrides + * @return + */ + public Builder setConditionalOverrides(Map> conditionalOverrides) { + this.conditionalOverrides = new HashMap<>(conditionalOverrides); + return this; + } + public Map> getConditionalOverrides() { return this.conditionalOverrides; }