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

Method unparse

code/src/java/plugin/lsttokens/kit/GenderToken.java:74–89  ·  view source on GitHub ↗
(LoadContext context, KitBio kitGender)

Source from the content-addressed store, hash-verified

72 }
73
74 @Override
75 public String[] unparse(LoadContext context, KitBio kitGender)
76 {
77 Collection<Indirect<Gender>> genders = kitGender.getGenders();
78 if (genders == null)
79 {
80 return null;
81 }
82 String[] g = new String[genders.size()];
83 int i = 0;
84 for (Indirect<Gender> genderIndirect : genders)
85 {
86 g[i++] = genderIndirect.get().name();
87 }
88 return new String[]{StringUtil.join(g, Constants.PIPE)};
89 }
90}

Callers

nothing calls this directly

Calls 5

joinMethod · 0.95
getGendersMethod · 0.80
nameMethod · 0.80
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected