@@ -62,28 +62,10 @@ public static class Builder {
62
62
private TimeWindow deliveryStartsTimeWindow = TimeWindow .newInstance (0.0 , Integer .MAX_VALUE );
63
63
private double deliveryDuration = 0.0 ;
64
64
65
-
66
65
/**
67
- * @deprecated Please use Builder newInstance(Id<CarrierShipment> id, Id<Link> from, Id<Link> to, int size) instead.
68
- * <p>
69
66
* Returns a new shipment builder.
70
- * <p> The builder is init with the shipment's origin (from), destination (to) and with the shipment's size.
71
- * The default-value for serviceTime is 0.0. The default-value for a timeWindow is [start=0.0, end=Double.maxValue()].
72
- *
73
- * @param from the origin
74
- * @param to the destination
75
- * @param size size of the shipment
76
- * @return the builder
77
- */
78
- @ Deprecated
79
- public static Builder newInstance (Id <Link > from , Id <Link > to , int size ){
80
- var id = Id .create (CarrierConstants .SHIPMENT +"_" + from .toString () + "_" + to .toString (), CarrierShipment .class );
81
- return new Builder (id , from ,to ,size );
82
- }
83
-
84
- /**
85
- * Returns a new shipment builder.
86
- * <p> The builder is init with the shipment's origin (from), destination (to) and with the shipment's demand.
67
+ * <p>
68
+ * The builder is init with the shipment's origin (from), destination (to) and with the shipment's demand.
87
69
* The default-value for serviceTime is 0.0. The default-value for a timeWindow is [start=0.0, end=Double.maxValue()].
88
70
*
89
71
* @param id the id of the shipment
@@ -96,18 +78,6 @@ public static Builder newInstance(Id<CarrierShipment> id, Id<Link> from, Id<Link
96
78
return new Builder (id , from , to , demand );
97
79
}
98
80
99
- /**
100
- * @deprecated Please use Builder (Id<CarrierShipment> id, Id<Link> from, Id<Link> to, int size) instead.
101
- */
102
- @ Deprecated
103
- public Builder (Id <Link > pickupLinkId , Id <Link > deliveryLinkId , int demand ) {
104
- super ();
105
- this .id = Id .create (CarrierConstants .SHIPMENT +"_" + pickupLinkId .toString () + "_" + deliveryLinkId .toString (), CarrierShipment .class );
106
- this .pickupLinkId = pickupLinkId ;
107
- this .deliveryLinkId = deliveryLinkId ;
108
- this .demand = demand ;
109
- }
110
-
111
81
private Builder (Id <CarrierShipment > id , Id <Link > pickupLinkId , Id <Link > deliveryLinkId , int demand ) {
112
82
super ();
113
83
this .id = id ;
0 commit comments