Interface TruckWeight.Builder

  • Method Details

    • 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

      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:
    • 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: