MCPcopy Create free account
hub / github.com/Neop/mudmap2 / getFlag

Method getFlag

src/main/java/mudmap2/backend/Place.java:311–316  ·  view source on GitHub ↗

Gets a flag value @param key flag name @return flag value

(final String key)

Source from the content-addressed store, hash-verified

309 * @return flag value
310 */
311 public boolean getFlag(final String key) {
312 if (key != null && flags.containsKey(key)) {
313 return flags.get(key);
314 }
315 return false;
316 }
317
318 /**
319 * Sets a string flag

Callers 4

testGetFlagMethod · 0.95
testSetFlagMethod · 0.95
testReadWriteFileMethod · 0.95
testReadWriteFileMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 4

testGetFlagMethod · 0.76
testSetFlagMethod · 0.76
testReadWriteFileMethod · 0.76
testReadWriteFileMethod · 0.76