Adds the given AgeSet to this BioSet for the given Region @param region The Region for which the given BioSet should be added @param ageSet The AgeSet to be added to this BioSet for the given Region @param sourceURI The URI indicating the location of the AgeSet in the data @return
(Optional<Region> region, AgeSet ageSet, URI sourceURI)
| 601 | * @return |
| 602 | */ |
| 603 | public AgeSet addToAgeMap(Optional<Region> region, AgeSet ageSet, URI sourceURI) |
| 604 | { |
| 605 | AgeSet old = ageMap.get(region, ageSet.getIndex()); |
| 606 | if (old != null) |
| 607 | { |
| 608 | if (ageSet.hasBonuses() || !ageSet.getKits().isEmpty() || !ageSet.getKeyName().equals(old.getKeyName())) |
| 609 | { |
| 610 | Logging.errorPrint( |
| 611 | "Found second (non-identical) AGESET " + "in Bio Settings " + sourceURI + " for Region: " |
| 612 | + region.orElse(Region.NONE) + " Index: " + ageSet.getIndex() + " using the existing " + old.getLSTformat()); |
| 613 | } |
| 614 | return old; |
| 615 | } |
| 616 | ageMap.put(region, ageSet.getIndex(), ageSet); |
| 617 | return ageSet; |
| 618 | } |
| 619 | |
| 620 | public Integer addToNameMap(AgeSet ageSet) |
| 621 | { |
no test coverage detected