import java.io.InputStream;
import java.io.UncheckedIOException;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
+import java.util.Set;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
public class IndirectGUIComponentCreator
{
private static final Map<String, String> standardComponentIDs = new HashMap<>();
+ private static final Set<String> standardComponentIDSetUnmodifiable = Collections.unmodifiableSet(standardComponentIDs.keySet());
private static final Map<String, ComponentSupplier> componentSuppliers = new HashMap<>();
public static Collection<String> getStandardComponentIDs()
{
- return standardComponentIDs.keySet();
+ return standardComponentIDSetUnmodifiable;
}
public static void setComponentSupplier(String className, ComponentSupplier componentSupplier)