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

Method unparse

code/src/java/plugin/lsttokens/gamemode/ageset/KitToken.java:132–144  ·  view source on GitHub ↗
(LoadContext context, AgeSet ageSet)

Source from the content-addressed store, hash-verified

130 }
131
132 @Override
133 public String[] unparse(LoadContext context, AgeSet ageSet)
134 {
135 Set<String> set = new TreeSet<>();
136 for (TransitionChoice<Kit> tc : ageSet.getKits())
137 {
138 String sb = tc.getCount()
139 + Constants.PIPE
140 + tc.getChoices().getLSTformat().replaceAll(Constants.COMMA, Constants.PIPE);
141 set.add(sb);
142 }
143 return set.toArray(new String[0]);
144 }
145
146 @Override
147 public Class<AgeSet> getTokenClass()

Callers

nothing calls this directly

Calls 7

getKitsMethod · 0.65
getCountMethod · 0.65
getLSTformatMethod · 0.65
getChoicesMethod · 0.65
addMethod · 0.65
replaceAllMethod · 0.45
toArrayMethod · 0.45

Tested by

no test coverage detected