withOccupancy abstract method
- int occupancy
Sets the vehicle occupants number.
occupancyThe vehicle occupants number.
Returns VehicleSpecificationScooterBuilder. The VehicleSpecificationScooterBuilder object with the vehicle occupants number set to the new value.
Implementation
VehicleSpecificationScooterBuilder withOccupancy(int occupancy);