mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
replace HashMap by LinkedHashMap to ensure reproducibility (#156)
This commit is contained in:
parent
3772436140
commit
62e1057518
1 changed files with 6 additions and 6 deletions
|
|
@ -122,17 +122,17 @@ public class VrpXMLReader{
|
|||
|
||||
public VrpXMLReader(VehicleRoutingProblem.Builder vrpBuilder, Collection<VehicleRoutingProblemSolution> solutions){
|
||||
this.vrpBuilder = vrpBuilder;
|
||||
this.vehicleMap = new HashMap<String, Vehicle>();
|
||||
this.serviceMap = new HashMap<String, Service>();
|
||||
this.shipmentMap = new HashMap<String, Shipment>();
|
||||
this.vehicleMap = new LinkedHashMap<String, Vehicle>();
|
||||
this.serviceMap = new LinkedHashMap<String, Service>();
|
||||
this.shipmentMap = new LinkedHashMap<String, Shipment>();
|
||||
this.solutions = solutions;
|
||||
}
|
||||
|
||||
public VrpXMLReader(VehicleRoutingProblem.Builder vrpBuilder){
|
||||
this.vrpBuilder = vrpBuilder;
|
||||
this.vehicleMap = new HashMap<String, Vehicle>();
|
||||
this.serviceMap = new HashMap<String, Service>();
|
||||
this.shipmentMap = new HashMap<String, Shipment>();
|
||||
this.vehicleMap = new LinkedHashMap<String, Vehicle>();
|
||||
this.serviceMap = new LinkedHashMap<String, Service>();
|
||||
this.shipmentMap = new LinkedHashMap<String, Shipment>();
|
||||
this.solutions = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue