MCPcopy Create free account
hub / github.com/PCGen/pcgen / ensureMap

Method ensureMap

code/src/java/pcgen/output/publish/OutputDB.java:176–182  ·  view source on GitHub ↗
(Map<String, Object> input, String k1String)

Source from the content-addressed store, hash-verified

174 }
175
176 private static void ensureMap(Map<String, Object> input, String k1String)
177 {
178 if (!input.containsKey(k1String))
179 {
180 input.put(k1String, new HashMap<>());
181 }
182 }
183
184 /**
185 * Builds the "game mode" data model

Callers 1

buildDataModelMethod · 0.95

Calls 2

containsKeyMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected