withHazardousMaterials abstract method

VehicleSpecificationTruckBuilder withHazardousMaterials(
  1. List<HazardousMaterial> hazardousMaterials
)

Sets the hazardous materials transported in the vehicle.

  • hazardousMaterials The hazardous materials transported in the vehicle.

Returns VehicleSpecificationTruckBuilder. The VehicleSpecificationTruckBuilder object with the hazardous materiales transported in the vehicle set to the new value.

Implementation

VehicleSpecificationTruckBuilder withHazardousMaterials(List<HazardousMaterial> hazardousMaterials);