public DeliverService(Delivery delivery) { super(); this.delivery = delivery; capacity = Capacity.invert(delivery.getSize()); }