primary
The first scenario, for matches that only ever run one.
runtimeId - the match the selection belongs tomode - how the set was decidedscenarioIds - the scenarios, highest priority firstvalidation - what validation made of the set while it was being locked inlocked - whether the set is final; a pending vote is notA selection is locked before the match leaves the waiting lobby and never changes afterwards, which is what makes a running match immune to configuration reloads, votes that arrive late, and scenarios being registered or unregistered mid-game.
ScenarioSelection(@NotNull String runtimeId,
@NotNull ScenarioSelectionMode mode,
@NotNull List<String> scenarioIds,
@NotNull ScenarioValidation validation,
boolean locked) ScenarioSelection record class.booleanstatic @NotNull ScenarioSelectionempty(@NotNull String runtimeId,
@NotNull ScenarioSelectionMode mode) final booleanfinal inthashCode()booleanisEmpty()booleanlocked()locked record component.@NotNull ScenarioSelectionModemode()mode record component.primary()@NotNull StringruntimeId record component.scenarioIds record component.final StringtoString()@NotNull ScenarioValidationvalidation record component.ScenarioSelection record class.runtimeId - the value for the runtimeId record componentmode - the value for the mode record componentscenarioIds - the value for the scenarioIds record componentvalidation - the value for the validation record componentlocked - the value for the locked record componentObjects::equals(Object,Object); primitive components are compared with '=='.runtimeId record component.runtimeId record componentmode record component.mode record componentscenarioIds record component.scenarioIds record componentvalidation record component.validation record componentlocked record component.locked record component