TransportSpecification.TaxiBuilder (API Reference)
Package com.here.sdk.transport
Class TransportSpecification.TaxiBuilder
java.lang.Object
com.here.NativeBase
com.here.sdk.transport.TransportSpecification.TaxiBuilder
- Enclosing class:
- TransportSpecification
This class constructs a TransportSpecification for a taxi.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theTransportSpecificationobject for a taxi with the specifications taken from theTransportSpecification.TaxiBuilderobject.withTaxiSpecification(TaxiSpecification taxiSpecification) Sets the taxi specification.withVehicleSpecification(VehicleSpecification vehicleSpecification) Sets the vehicle specification.
-
Constructor Details
-
TaxiBuilder
public TaxiBuilder()Creates a new instance of this class.
-
-
Method Details
-
withTaxiSpecification
@NonNull public TransportSpecification.TaxiBuilder withTaxiSpecification(@NonNull TaxiSpecification taxiSpecification) Sets the taxi specification.
- Parameters:
taxiSpecification-The taxi specification.
- Returns:
The
TransportSpecification.TaxiBuilderobject with the taxi specification set to the new value.
-
withVehicleSpecification
@NonNull public TransportSpecification.TaxiBuilder withVehicleSpecification(@NonNull VehicleSpecification vehicleSpecification) Sets the vehicle specification.
- Parameters:
vehicleSpecification-The vehicle specification.
- Returns:
The
TransportSpecification.TaxiBuilderobject with the vehicle specification set to the new value.
-
build
Builds the
TransportSpecificationobject for a taxi with the specifications taken from theTransportSpecification.TaxiBuilderobject.- Returns:
The
TransportSpecificationobject created from theTransportSpecification.TaxiBuilderobject.
-