public Builder<T> setTimeWindow(TimeWindow tw){ if (tw == null) throw new IllegalArgumentException("The time window must not be null."); this.timeWindows = new TimeWindowsImpl(); timeWindows.add(tw); return this; }
public Builder<T> addTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("The time window must not be null."); if(!twAdded){ timeWindows = new TimeWindowsImpl(); twAdded = true; } timeWindows.add(timeWindow); return this; }
public Builder addDeliveryTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("The time window must not be null."); if(!deliveryTimeWindowAdded){ deliveryTimeWindows = new TimeWindowsImpl(); deliveryTimeWindowAdded = true; } deliveryTimeWindows.add(timeWindow); return this; }
public Builder addPickupTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("The time window must not be null."); if(!pickupTimeWindowAdded){ pickupTimeWindows = new TimeWindowsImpl(); pickupTimeWindowAdded = true; } pickupTimeWindows.add(timeWindow); return this; }
/** * Sets the timeWindow for the pickup, i.e. the time-period in which a pickup operation is * allowed to START. * <p> * <p>By default timeWindow is [0.0, Double.MAX_VALUE} * * @param timeWindow the time window within the pickup operation/activity can START * @return builder * @throws IllegalArgumentException if timeWindow is null */ public Builder setPickupTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("The delivery time window must not be null."); this.pickupTimeWindows = new TimeWindowsImpl(); this.pickupTimeWindows.add(timeWindow); return this; }
/** * Sets the timeWindow for the delivery, i.e. the time-period in which a delivery operation is * allowed to start. * <p> * <p>By default timeWindow is [0.0, Double.MAX_VALUE} * * @param timeWindow the time window within the associated delivery is allowed to START * @return builder * @throws IllegalArgumentException if timeWindow is null */ public Builder setDeliveryTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("The delivery time window must not be null."); this.deliveryTimeWindows = new TimeWindowsImpl(); this.deliveryTimeWindows.add(timeWindow); return this; }
Builder(String id) { if (id == null) throw new IllegalArgumentException("id must not be null"); this.id = id; pickupTimeWindows = new TimeWindowsImpl(); pickupTimeWindows.add(TimeWindow.newInstance(0.0, Double.MAX_VALUE)); deliveryTimeWindows = new TimeWindowsImpl(); deliveryTimeWindows.add(TimeWindow.newInstance(0.0, Double.MAX_VALUE)); }
Builder(String id){ this.id = id; timeWindows = new TimeWindowsImpl(); timeWindows.add(TimeWindow.newInstance(0.0, Double.MAX_VALUE)); }
public Builder<T> addTimeWindow(TimeWindow timeWindow) { if(timeWindow == null) throw new IllegalArgumentException("time-window arg must not be null"); if(!twAdded){ timeWindows = new TimeWindowsImpl(); twAdded = true; } timeWindows.add(timeWindow); return this; }
public Builder<T> setTimeWindow(TimeWindow tw){ if(tw == null) throw new IllegalArgumentException("time-window arg must not be null"); this.timeWindow = tw; this.timeWindows = new TimeWindowsImpl(); timeWindows.add(tw); return this; }
Builder(String id){ this.id = id; timeWindows = new TimeWindowsImpl(); timeWindows.add(timeWindow); }
public Builder addDeliveryTimeWindow(TimeWindow timeWindow) { if(timeWindow == null) throw new IllegalArgumentException("time-window arg must not be null"); if(!deliveryTimeWindowAdded){ deliveryTimeWindows = new TimeWindowsImpl(); deliveryTimeWindowAdded = true; } deliveryTimeWindows.add(timeWindow); return this; }
public Builder addPickupTimeWindow(TimeWindow timeWindow) { if(timeWindow == null) throw new IllegalArgumentException("time-window arg must not be null"); if(!pickupTimeWindowAdded){ pickupTimeWindows = new TimeWindowsImpl(); pickupTimeWindowAdded = true; } pickupTimeWindows.add(timeWindow); return this; }
/** * Sets the timeWindow for the pickup, i.e. the time-period in which a pickup operation is * allowed to START. * <p> * <p>By default timeWindow is [0.0, Double.MAX_VALUE} * * @param timeWindow the time window within the pickup operation/activity can START * @return builder * @throws IllegalArgumentException if timeWindow is null */ public Builder setPickupTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("delivery time-window must not be null"); this.pickupTimeWindow = timeWindow; this.pickupTimeWindows = new TimeWindowsImpl(); this.pickupTimeWindows.add(timeWindow); return this; }
/** * Sets the timeWindow for the delivery, i.e. the time-period in which a delivery operation is * allowed to start. * <p> * <p>By default timeWindow is [0.0, Double.MAX_VALUE} * * @param timeWindow the time window within the associated delivery is allowed to START * @return builder * @throws IllegalArgumentException if timeWindow is null */ public Builder setDeliveryTimeWindow(TimeWindow timeWindow) { if (timeWindow == null) throw new IllegalArgumentException("delivery time-window must not be null"); this.deliveryTimeWindow = timeWindow; this.deliveryTimeWindows = new TimeWindowsImpl(); this.deliveryTimeWindows.add(timeWindow); return this; }