• java.lang.Object
    • com.here.sdk.navigation.WeightRestriction

  • public final class WeightRestriction
    extends java.lang.Object

    Defines a weight restriction.

    • Field Detail

      • valueInKilograms

        public int valueInKilograms

        The maximum allowed weight.

    • Constructor Detail

      • WeightRestriction

        public WeightRestriction​(int valueInKilograms,
                                 @NonNull
                                 WeightRestrictionType type)

        Creates a new instance.

        Parameters:
        valueInKilograms -

        The maximum allowed weight.

        type -

        The type of the weight restriction.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object