Class TruckDimensions

    • Method Detail

      • height

        public final Double height()

        The height of the truck.

        • For example, 4.5.

        For routes calculated with a HERE resource, this value must be between 0 and 50 meters.

        Returns:
        The height of the truck.

        • For example, 4.5.

        For routes calculated with a HERE resource, this value must be between 0 and 50 meters.

      • length

        public final Double length()

        The length of the truck.

        • For example, 15.5.

        For routes calculated with a HERE resource, this value must be between 0 and 300 meters.

        Returns:
        The length of the truck.

        • For example, 15.5.

        For routes calculated with a HERE resource, this value must be between 0 and 300 meters.

      • unit

        public final DimensionUnit unit()

        Specifies the unit of measurement for the truck dimensions.

        Default Value: Meters

        If the service returns an enum value that is not available in the current SDK version, unit will return DimensionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from unitAsString().

        Returns:
        Specifies the unit of measurement for the truck dimensions.

        Default Value: Meters

        See Also:
        DimensionUnit
      • unitAsString

        public final String unitAsString()

        Specifies the unit of measurement for the truck dimensions.

        Default Value: Meters

        If the service returns an enum value that is not available in the current SDK version, unit will return DimensionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from unitAsString().

        Returns:
        Specifies the unit of measurement for the truck dimensions.

        Default Value: Meters

        See Also:
        DimensionUnit
      • width

        public final Double width()

        The width of the truck.

        • For example, 4.5.

        For routes calculated with a HERE resource, this value must be between 0 and 50 meters.

        Returns:
        The width of the truck.

        • For example, 4.5.

        For routes calculated with a HERE resource, this value must be between 0 and 50 meters.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)