withOccupancy abstract method

VehicleSpecificationBusBuilder withOccupancy(
  1. int occupancy
)

Sets the vehicle occupants number.

  • occupancy The vehicle occupants number.

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

Implementation

VehicleSpecificationBusBuilder withOccupancy(int occupancy);