CarBuilder
public class CarBuilder
extension TransportSpecification.CarBuilder: NativeBase
extension TransportSpecification.CarBuilder: Hashable
This class constructs a TransportSpecification for a car.
-
Creates a new instance of this class.
Declaration
Swift
public init() -
Sets the vehicle specification.
Declaration
Swift
public func withVehicleSpecification(_ vehicleSpecification: VehicleSpecification) -> TransportSpecification.CarBuilderParameters
vehicleSpecificationThe vehicle specification.
Return Value
The
TransportSpecification.CarBuilderobject with the vehicle specification set to the new value. -
Builds the
TransportSpecificationobject for a car with the specifications taken from theTransportSpecification.CarBuilderobject.Declaration
Swift
public func build() -> TransportSpecificationReturn Value
The
TransportSpecificationobject created from theTransportSpecification.CarBuilderobject.