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

Method toString

code/src/java/pcgen/core/kit/KitProf.java:70–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 @Override
71 public String toString()
72 {
73 final int maxSize = profList.size();
74 final StringBuilder info = new StringBuilder(maxSize * 10);
75
76 if ((getSafeCount() != 1) || (maxSize != 1))
77 {
78 info.append(getSafeCount()).append(" of ");
79 }
80
81 info.append(StringUtil.join(profList, ", "));
82
83 return info.toString();
84 }
85
86 @Override
87 public boolean testApply(Kit aKit, PlayerCharacter aPC, List<String> warnings)

Callers

nothing calls this directly

Calls 5

getSafeCountMethod · 0.95
joinMethod · 0.95
sizeMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected