Package org.goplanit.utils.zoning
Class TransferZoneGroupUtils
- java.lang.Object
-
- org.goplanit.utils.zoning.TransferZoneGroupUtils
-
public class TransferZoneGroupUtils extends Object
Utility functions around transfer zone groups- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description TransferZoneGroupUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <G extends TransferZoneGroup,Z extends TransferZone>
voidupdateTransferZoneMapping(Iterable<G> transferZoneGroups, Function<Z,Z> zoneToZoneMapping, boolean removeMissingMappings)
Update the transfer zones of all transfer zone groups based on the mapping provided (if any)
-
-
-
Method Detail
-
updateTransferZoneMapping
public static <G extends TransferZoneGroup,Z extends TransferZone> void updateTransferZoneMapping(Iterable<G> transferZoneGroups, Function<Z,Z> zoneToZoneMapping, boolean removeMissingMappings)
Update the transfer zones of all transfer zone groups based on the mapping provided (if any)- Type Parameters:
G
- type of transfer zone groupZ
- type of transfer zone- Parameters:
transferZoneGroups
- to apply tozoneToZoneMapping
- to use should contain original transfer zone and then the value is the new transfer zone to replace itremoveMissingMappings
- when true if there is no mapping, the transferZone is removed from the group, otherwise it is left in-tact
-
-