(LoadContext context, KitGear kitGear)
| 124 | } |
| 125 | |
| 126 | @Override |
| 127 | public String[] unparse(LoadContext context, KitGear kitGear) |
| 128 | { |
| 129 | if (!kitGear.hasEqMods()) |
| 130 | { |
| 131 | return null; |
| 132 | } |
| 133 | Set<String> set = new TreeSet<>(); |
| 134 | for (EqModRef modRef : kitGear.getEqMods()) |
| 135 | { |
| 136 | String key = modRef.getRef().getLSTformat(false); |
| 137 | StringBuilder sb = new StringBuilder(); |
| 138 | sb.append(key); |
| 139 | for (String s : modRef.getChoices()) |
| 140 | { |
| 141 | sb.append(Constants.PIPE).append(s); |
| 142 | } |
| 143 | set.add(sb.toString()); |
| 144 | } |
| 145 | return new String[]{StringUtil.join(set, Constants.DOT)}; |
| 146 | } |
| 147 | } |
nothing calls this directly
no test coverage detected