1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

Shipment.toString() added

This commit is contained in:
Michal Maciejewski 2017-10-24 22:01:25 +02:00
parent 49c6d36945
commit d4b22a30db
No known key found for this signature in database
GPG key ID: 015947E60A2AD77B

View file

@ -448,6 +448,21 @@ public class Shipment extends AbstractJob {
return pickupTimeWindows.getTimeWindows();
}
/**
* Returns a string with the shipment's attributes.
* <p>
* <p>String is built as follows: [attr1=val1][attr2=val2]...
*/
@Override
public String toString() {
return "[id=" + id + "][name=" + name + "][pickupLocation=" + pickupLocation_
+ "][deliveryLocation=" + deliveryLocation_ + "][capacity=" + capacity
+ "][pickupServiceTime=" + pickupServiceTime + "][deliveryServiceTime="
+ deliveryServiceTime + "][pickupTimeWindow=" + pickupTimeWindow
+ "][deliveryTimeWindow=" + deliveryTimeWindow + "]";
}
@Override
public int hashCode() {