23 package com.realtime.crossfire.jxclient.settings.options;
27 import java.util.Collections;
28 import java.util.HashMap;
30 import org.jetbrains.annotations.NotNull;
42 private final Map<String, Entry>
options =
new HashMap<>();
66 if (
options.containsKey(optionName)) {
70 options.put(optionName,
new Entry(option, documentation));
87 return Collections.unmodifiableMap(
options);
111 final String optionName = e.getKey();
112 final Object option = e.getValue().getOption();
115 if (checkBoxOption.isChecked() == checked) {
117 checkBoxOption.fireStateChangedEvent();
119 checkBoxOption.setChecked(checked);
122 throw new AssertionError();
132 final String optionName = e.getKey();
133 final Entry entry = e.getValue();
139 throw new AssertionError();