withOccupancy abstract method

VehicleSpecificationPrivateBusBuilder withOccupancy(
  1. int occupancy
)

Sets the vehicle occupants number.

  • occupancy The vehicle occupants number.

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

Implementation

VehicleSpecificationPrivateBusBuilder withOccupancy(int occupancy);