1
0
Fork 0
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:
jsprit 2013-12-27 21:46:50 +01:00
parent 0adcb735ee
commit 525bc4c2f2

View file

@ -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)");