(final String addKey, final int tokenNum, Optional<Region> region, String raceName)
| 248 | } |
| 249 | |
| 250 | private String getTokenNumberInMaps(final String addKey, final int tokenNum, Optional<Region> region, String raceName) |
| 251 | { |
| 252 | final List<String> r = getValueInMaps(region, raceName, addKey); |
| 253 | |
| 254 | if (r == null) |
| 255 | { |
| 256 | return null; |
| 257 | } |
| 258 | |
| 259 | if (r.size() <= tokenNum) |
| 260 | { |
| 261 | return "0"; |
| 262 | } |
| 263 | |
| 264 | return r.get(tokenNum); |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * Returns the List of items in the BioSet for the given Region, Race and token key. |
no test coverage detected