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:
parent
49c6d36945
commit
d4b22a30db
1 changed files with 15 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue