SpecificRestriction (API Reference)
Package com.here.sdk.transport
Class SpecificRestriction
java.lang.Object
com.here.sdk.transport.SpecificRestriction
Represents a specific vehicle restriction.
A SpecificRestriction defines what type of restriction applies (weight, height, etc.)
and the range of allowed values. It is always used as part of a VehicleRestriction.
Note: This is a beta release of this feature. Related APIs may change for new releases without a deprecation process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionType of restriction.Values for which the restriction applies. -
Constructor Summary
ConstructorsConstructorDescriptionSpecificRestriction(RestrictionType type, IntegerRange value) Creates a new instance. -
Method Summary
-
Field Details
-
type
Type of restriction.
-
value
Values for which the restriction applies. Examples:
(min, max)→ Restriction applies for all values between min and max inclusive.(n, n)→ Restriction applies to an exact value.(n, 0)or(n, null)→ Restriction applies for values greater than or equal to min (unbounded upper limit).
-
-
Constructor Details
-
SpecificRestriction
Creates a new instance.
- Parameters:
type-Type of restriction.
value-Values for which the restriction applies. Examples:
(min, max)→ Restriction applies for all values between min and max inclusive.(n, n)→ Restriction applies to an exact value.(n, 0)or(n, null)→ Restriction applies for values greater than or equal to min (unbounded upper limit).
-
-
Method Details