Class VehicleSpecification.CarBuilder
Class VehicleSpecification.CarBuilder
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.transport.VehicleSpecification.CarBuilder
-
- Enclosing class:
- VehicleSpecification
public static final class VehicleSpecification.CarBuilder extends NativeBase
This class constructs a
VehicleSpecificationfor a car.
-
-
Constructor Summary
Constructors Constructor Description CarBuilder()Creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VehicleSpecificationbuild()Builds theVehicleSpecificationobject forTransportMode.CARwith the specifications taken from theVehicleSpecification.CarBuilderobject.VehicleSpecification.CarBuilderwithAxleCount(int axleCount)Sets the vehicle axle count.VehicleSpecification.CarBuilderwithCurrentWeightInKilograms(int currentWeightInKilograms)Sets the vehicle current weight in kilograms.VehicleSpecification.CarBuilderwithEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters)Sets the vehicle engine size in cubic centimeters.VehicleSpecification.CarBuilderwithGrossWeightInKilograms(int grossWeightInKilograms)Sets the vehicle gross weight in kilograms.VehicleSpecification.CarBuilderwithHazardousMaterials(java.util.List<HazardousMaterial> hazardousMaterials)Sets the hazardous materials transported in the vehicle.VehicleSpecification.CarBuilderwithHeightInCentimeters(int heightInCentimeters)Sets the vehicle height in centimeters.VehicleSpecification.CarBuilderwithIsCommercial(boolean isCommercial)Sets the vehicle is commercial flag.VehicleSpecification.CarBuilderwithIsTruckLight(boolean isTruckLight)Sets the vehicle truck light flag.VehicleSpecification.CarBuilderwithLastCharacterOfLicensePlate(java.lang.String lastCharacterOfLicensePlate)Sets the vehicle last character of the license plate.VehicleSpecification.CarBuilderwithLengthInCentimeters(int lengthInCentimeters)Sets the vehicle length in centimeters.VehicleSpecification.CarBuilderwithOccupancy(int occupancy)Sets the vehicle occupants number.VehicleSpecification.CarBuilderwithPayloadCapacityInKilograms(int payloadCapacityInKilograms)Sets the vehicle payload capacity in kilograms.VehicleSpecification.CarBuilderwithTiresCount(int tiresCount)Sets the vehicle tires count.VehicleSpecification.CarBuilderwithTrailerAxleCount(int trailerAxleCount)Sets the vehicle trailer axle count.VehicleSpecification.CarBuilderwithTrailerCount(int trailerCount)Sets the vehicle trailer count.VehicleSpecification.CarBuilderwithTruckCategory(TruckCategory truckCategory)Sets the vehicle truck category.VehicleSpecification.CarBuilderwithTunnelCategory(TunnelCategory tunnelCategory)Sets the vehicle tunnel category.VehicleSpecification.CarBuilderwithWeightPerAxleGroup(WeightPerAxleGroup weightPerAxleGroup)Sets the vehicle weight per axle group.VehicleSpecification.CarBuilderwithWeightPerAxleInKilograms(int weightPerAxleInKilograms)Sets the vehicle weight per axle in kilograms.VehicleSpecification.CarBuilderwithWidthInCentimeters(int widthInCentimeters)Sets the vehicle width in centimeters.
-
-
-
Method Detail
-
withHeightInCentimeters
@NonNull public VehicleSpecification.CarBuilder withHeightInCentimeters(int heightInCentimeters)
Sets the vehicle height in centimeters.
- Parameters:
heightInCentimeters-The vehicle height in centimeters.
- Returns:
The
VehicleSpecification.CarBuilderobject with the vehicle height set to the new value.
-
withWidthInCentimeters
@NonNull public VehicleSpecification.CarBuilder withWidthInCentimeters(int widthInCentimeters)
Sets the vehicle width in centimeters.
- Parameters:
widthInCentimeters-The vehicle width in centimeters.
- Returns:
The
VehicleSpecification.CarBuilderobject with the vehicle width set to the new value.
-
withLengthInCentimeters
@NonNull public VehicleSpecification.CarBuilder withLengthInCentimeters(int lengthInCentimeters)
Sets the vehicle length in centimeters.
- Parameters:
lengthInCentimeters-The vehicle length in centimeters.
- Returns:
The
VehicleSpecification.CarBuilderobject with the vehicle length set to the new value.
-
withAxleCount
@NonNull public VehicleSpecification.CarBuilder withAxleCount(int axleCount)
Sets the vehicle axle count.
- Parameters:
axleCount-The vehicle axle count.
- Returns:
The
VehicleSpecification.CarBuilderobject with the axle count set to the new value.
-
withTrailerCount
@NonNull public VehicleSpecification.CarBuilder withTrailerCount(int trailerCount)
Sets the vehicle trailer count.
- Parameters:
trailerCount-The vehicle trailer count.
- Returns:
The
VehicleSpecification.CarBuilderobject with the trailer count set to the new value.
-
withTruckCategory
@NonNull public VehicleSpecification.CarBuilder withTruckCategory(@NonNull TruckCategory truckCategory)
Sets the vehicle truck category.
- Parameters:
truckCategory-The vehicle truck category.
- Returns:
The
VehicleSpecification.CarBuilderobject with the truck category set to the new value.
-
withIsTruckLight
@NonNull public VehicleSpecification.CarBuilder withIsTruckLight(boolean isTruckLight)
Sets the vehicle truck light flag.
- Parameters:
isTruckLight-The vehicle truck light flag.
- Returns:
The
VehicleSpecification.CarBuilderobject with the truck light flag set to the new value.
-
withPayloadCapacityInKilograms
@NonNull public VehicleSpecification.CarBuilder withPayloadCapacityInKilograms(int payloadCapacityInKilograms)
Sets the vehicle payload capacity in kilograms.
- Parameters:
payloadCapacityInKilograms-The vehicle payload capacity in kilograms.
- Returns:
The
VehicleSpecification.CarBuilderobject with the payload capacity set to the new value.
-
withTrailerAxleCount
@NonNull public VehicleSpecification.CarBuilder withTrailerAxleCount(int trailerAxleCount)
Sets the vehicle trailer axle count.
- Parameters:
trailerAxleCount-The vehicle trailer axle count.
- Returns:
The
VehicleSpecification.CarBuilderobject with the trailer axle count set to the new value.
-
withGrossWeightInKilograms
@NonNull public VehicleSpecification.CarBuilder withGrossWeightInKilograms(int grossWeightInKilograms)
Sets the vehicle gross weight in kilograms.
- Parameters:
grossWeightInKilograms-The vehicle gross weight in kilograms.
- Returns:
The
VehicleSpecification.CarBuilderobject with the gross weight set to the new value.
-
withCurrentWeightInKilograms
@NonNull public VehicleSpecification.CarBuilder withCurrentWeightInKilograms(int currentWeightInKilograms)
Sets the vehicle current weight in kilograms.
- Parameters:
currentWeightInKilograms-The vehicle current weight in kilograms.
- Returns:
The
VehicleSpecification.CarBuilderobject with the current weight set to the new value.
-
withWeightPerAxleInKilograms
@NonNull public VehicleSpecification.CarBuilder withWeightPerAxleInKilograms(int weightPerAxleInKilograms)
Sets the vehicle weight per axle in kilograms.
- Parameters:
weightPerAxleInKilograms-The vehicle weight per axle in kilograms.
- Returns:
The
VehicleSpecification.CarBuilderobject with the current weight per axle set to the new value.
-
withWeightPerAxleGroup
@NonNull public VehicleSpecification.CarBuilder withWeightPerAxleGroup(@NonNull WeightPerAxleGroup weightPerAxleGroup)
Sets the vehicle weight per axle group.
- Parameters:
weightPerAxleGroup-The vehicle weight per axle group.
- Returns:
The
VehicleSpecification.CarBuilderobject with the current weight per axle group set to the new value.
-
withIsCommercial
@NonNull public VehicleSpecification.CarBuilder withIsCommercial(boolean isCommercial)
Sets the vehicle is commercial flag.
- Parameters:
isCommercial-The vehicle is commercial flag.
- Returns:
The
VehicleSpecification.CarBuilderobject with the is commercial flag set to the new value.
-
withLastCharacterOfLicensePlate
@NonNull public VehicleSpecification.CarBuilder withLastCharacterOfLicensePlate(@NonNull java.lang.String lastCharacterOfLicensePlate)
Sets the vehicle last character of the license plate.
- Parameters:
lastCharacterOfLicensePlate-The vehicle last character of the license plate.
- Returns:
The
VehicleSpecification.CarBuilderobject with the last character of the licence plate set to the new value.
-
withEngineSizeInCubicCentimeters
@NonNull public VehicleSpecification.CarBuilder withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters)
Sets the vehicle engine size in cubic centimeters.
- Parameters:
engineSizeInCubicCentimeters-The vehicle engine size in cubic centimeters.
- Returns:
The
VehicleSpecification.CarBuilderobject with the engine size set to the new value.
-
withTiresCount
@NonNull public VehicleSpecification.CarBuilder withTiresCount(int tiresCount)
Sets the vehicle tires count.
- Parameters:
tiresCount-The vehicle tires count.
- Returns:
The
VehicleSpecification.CarBuilderobject with the vehicle tires count set to the new value.
-
withTunnelCategory
@NonNull public VehicleSpecification.CarBuilder withTunnelCategory(@NonNull TunnelCategory tunnelCategory)
Sets the vehicle tunnel category.
- Parameters:
tunnelCategory-The vehicle tunnel category.
- Returns:
The
VehicleSpecification.CarBuilderobject with the vehicle tunnel category set to the new value.
-
withHazardousMaterials
@NonNull public VehicleSpecification.CarBuilder withHazardousMaterials(@NonNull java.util.List<HazardousMaterial> hazardousMaterials)
Sets the hazardous materials transported in the vehicle.
- Parameters:
hazardousMaterials-The hazardous materials transported in the vehicle.
- Returns:
The
VehicleSpecification.CarBuilderobject with the hazardous materiales transported in the vehicle set to the new value.
-
withOccupancy
@NonNull public VehicleSpecification.CarBuilder withOccupancy(int occupancy)
Sets the vehicle occupants number.
- Parameters:
occupancy-The vehicle occupants number.
- Returns:
The
VehicleSpecification.CarBuilderobject with the vehicle occupants number set to the new value.
-
build
@NonNull public VehicleSpecification build()
Builds the
VehicleSpecificationobject forTransportMode.CARwith the specifications taken from theVehicleSpecification.CarBuilderobject.- Returns:
The
VehicleSpecificationobject created from theVehicleSpecification.CarBuilderobject.
-
-