withOccupancy abstract method

VehicleSpecificationTruckBuilder withOccupancy(
  1. int occupancy
)

Sets the vehicle occupants number.

  • occupancy The vehicle occupants number.

Returns VehicleSpecificationTruckBuilder. The VehicleSpecificationTruckBuilder object with the vehicle occupants number set to the new value.

Implementation

VehicleSpecificationTruckBuilder withOccupancy(int occupancy);