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

Method getValueInMaps

code/src/java/pcgen/core/BioSet.java:278–291  ·  view source on GitHub ↗

Returns the List of items in the BioSet for the given Region, Race and token key. @param region The Region for which the information should be returned @param argRaceName The name of the Race for which the info should be returned @param addKey The token key of the i

(Optional<Region> region, final String argRaceName, final String addKey)

Source from the content-addressed store, hash-verified

276 * @return The List of items in the BioSet for the given parameters
277 */
278 public List<String> getValueInMaps(Optional<Region> region, final String argRaceName, final String addKey)
279 {
280 final String anotherRaceName;
281
282 if (argRaceName.indexOf('(') >= 0)
283 {
284 anotherRaceName = argRaceName.substring(0, argRaceName.indexOf('(')).trim() + '%';
285 }
286 else
287 {
288 anotherRaceName = argRaceName + '%';
289 }
290 return mapFind(userMap, region, argRaceName, addKey, anotherRaceName);
291 }
292
293 /**
294 * Adds the tag (key & value) to the supplied ageSets collection. It is

Callers 3

testParseLineMethod · 0.95
getAgeSetIndexMethod · 0.95
getTokenNumberInMapsMethod · 0.95

Calls 3

mapFindMethod · 0.95
trimMethod · 0.80
indexOfMethod · 0.65

Tested by 1

testParseLineMethod · 0.76