Class WeightRestriction
- Last UpdatedJun 10, 2025
- 1 minute read
Package com.here.sdk.navigation
- java.lang.Object
-
- com.here.sdk.navigation.WeightRestriction
-
public final class WeightRestriction extends java.lang.Object
Defines a weight restriction.
-
-
Field Summary
Fields Modifier and Type Field Description WeightRestrictionType
type
The type of the weight restriction.int
valueInKilograms
The maximum allowed weight.
-
Constructor Summary
Constructors Constructor Description WeightRestriction(int valueInKilograms, WeightRestrictionType type)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
Field Detail
-
valueInKilograms
public int valueInKilograms
The maximum allowed weight.
-
type
@NonNull public WeightRestrictionType type
The type of the weight restriction.
-
-
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.
-
-