mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
Update VehicleRoutingProblem.java
This commit is contained in:
parent
0adcb735ee
commit
525bc4c2f2
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ public class VehicleRoutingProblem {
|
|||
*
|
||||
* @param job
|
||||
* @return
|
||||
* @throws IllegalStateException if job is neither a shipment or a service, or jobId has already been added.
|
||||
* @throws IllegalStateException if job is neither a shipment nor a service, or jobId has already been added.
|
||||
*/
|
||||
public Builder addJob(Job job) {
|
||||
if(jobs.containsKey(job.getId())) throw new IllegalStateException("jobList already contains a job with id " + job.getId() + ". make sure you use unique ids for your jobs (i.e. service and shipments)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue