Class SpecificRestriction

java.lang.Object
com.here.sdk.transport.SpecificRestriction

public final class SpecificRestriction extends Object

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 Details

    • type

      @NonNull public RestrictionType type

      Type of restriction.

    • value

      @NonNull public IntegerRange 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

      public SpecificRestriction(@NonNull RestrictionType type, @NonNull IntegerRange value)

      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