Class VehicleSpecification
- java.lang.Object
-
- global.maplink.trip.schema.v1.payload.VehicleSpecification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVehicleSpecification.VehicleSpecificationBuilder
-
Constructor Summary
Constructors Constructor Description VehicleSpecification()VehicleSpecification(Double maxWeight, Double maxWeightPerAxle, Double maxLength, Double maxLengthBetweenAxles, Double maxWidth, Double maxHeight, Double maxWeightForExplodingMaterials, Double maxWeightForPollutingMaterials, Double maxWeightForDangerousMaterials, Set<LoadType> loadTypes)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface global.maplink.validations.Validable
throwIfInvalid
-
-
-
-
Constructor Detail
-
VehicleSpecification
public VehicleSpecification()
-
VehicleSpecification
public VehicleSpecification(Double maxWeight, Double maxWeightPerAxle, Double maxLength, Double maxLengthBetweenAxles, Double maxWidth, Double maxHeight, Double maxWeightForExplodingMaterials, Double maxWeightForPollutingMaterials, Double maxWeightForDangerousMaterials, Set<LoadType> loadTypes)
-
-
Method Detail
-
validate
public List<ValidationViolation> validate()
-
builder
public static VehicleSpecification.VehicleSpecificationBuilder builder()
-
getMaxWeight
public Double getMaxWeight()
-
getMaxWeightPerAxle
public Double getMaxWeightPerAxle()
-
getMaxLength
public Double getMaxLength()
-
getMaxLengthBetweenAxles
public Double getMaxLengthBetweenAxles()
-
getMaxWidth
public Double getMaxWidth()
-
getMaxHeight
public Double getMaxHeight()
-
getMaxWeightForExplodingMaterials
public Double getMaxWeightForExplodingMaterials()
-
getMaxWeightForPollutingMaterials
public Double getMaxWeightForPollutingMaterials()
-
getMaxWeightForDangerousMaterials
public Double getMaxWeightForDangerousMaterials()
-
setMaxWeight
public void setMaxWeight(Double maxWeight)
-
setMaxWeightPerAxle
public void setMaxWeightPerAxle(Double maxWeightPerAxle)
-
setMaxLength
public void setMaxLength(Double maxLength)
-
setMaxLengthBetweenAxles
public void setMaxLengthBetweenAxles(Double maxLengthBetweenAxles)
-
setMaxWidth
public void setMaxWidth(Double maxWidth)
-
setMaxHeight
public void setMaxHeight(Double maxHeight)
-
setMaxWeightForExplodingMaterials
public void setMaxWeightForExplodingMaterials(Double maxWeightForExplodingMaterials)
-
setMaxWeightForPollutingMaterials
public void setMaxWeightForPollutingMaterials(Double maxWeightForPollutingMaterials)
-
setMaxWeightForDangerousMaterials
public void setMaxWeightForDangerousMaterials(Double maxWeightForDangerousMaterials)
-
canEqual
protected boolean canEqual(Object other)
-
-