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
fac5db530e
commit
cea251b942
1 changed files with 15 additions and 0 deletions
|
|
@ -449,6 +449,21 @@ public class Shipment extends AbstractJob {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue