Interface TruckWeight.Builder

    • Method Detail

      • total

        TruckWeight.Builder total​(Double total)

        The total weight of the truck.

        • For example, 3500.

        Parameters:
        total - The total weight of the truck.

        • For example, 3500.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • unit

        TruckWeight.Builder unit​(String unit)

        The unit of measurement to use for the truck weight.

        Default Value: Kilograms

        Parameters:
        unit - The unit of measurement to use for the truck weight.

        Default Value: Kilograms

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VehicleWeightUnit, VehicleWeightUnit
      • unit

        TruckWeight.Builder unit​(VehicleWeightUnit unit)

        The unit of measurement to use for the truck weight.

        Default Value: Kilograms

        Parameters:
        unit - The unit of measurement to use for the truck weight.

        Default Value: Kilograms

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VehicleWeightUnit, VehicleWeightUnit