withTrailerCount abstract method

VehicleSpecificationTruckBuilder withTrailerCount(
  1. int trailerCount
)

Sets the vehicle trailer count.

  • trailerCount The vehicle trailer count.

Returns VehicleSpecificationTruckBuilder. The VehicleSpecificationTruckBuilder object with the trailer count set to the new value.

Implementation

VehicleSpecificationTruckBuilder withTrailerCount(int trailerCount);