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

Method setStringFor

code/src/java/pcgen/core/PlayerCharacter.java:6930–6939  ·  view source on GitHub ↗

Set the string for the characteristic @param key @param s

(PCStringKey key, String s)

Source from the content-addressed store, hash-verified

6928 * @param s
6929 */
6930 public void setStringFor(PCStringKey key, String s)
6931 {
6932 assert (key != null);
6933 String currValue = factFacet.get(id, key);
6934 if (PlayerCharacter.shouldDirtyForChange(s, currValue))
6935 {
6936 factFacet.set(id, key, s);
6937 setDirty(true);
6938 }
6939 }
6940
6941 private static boolean shouldDirtyForChange(final String s, final String currValue)
6942 {

Callers 12

setPCAttributeMethod · 0.95
setEyeColorMethod · 0.95
setFileNameMethod · 0.95
setNameMethod · 0.95
setPortraitPathMethod · 0.95
setBoilerplateMethod · 0.80

Calls 4

shouldDirtyForChangeMethod · 0.95
setDirtyMethod · 0.95
getMethod · 0.65
setMethod · 0.65

Tested by 1

setBoilerplateMethod · 0.64