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.CarBuilder

    Parameters

    vehicleSpecification

    The vehicle specification.

    Return Value

    The TransportSpecification.CarBuilder object with the vehicle specification set to the new value.

  • Builds the TransportSpecification object for a car with the specifications taken from the TransportSpecification.CarBuilder object.

    Declaration

    Swift

    public func build() -> TransportSpecification

    Return Value

    The TransportSpecification object created from the TransportSpecification.CarBuilder object.