Class SpecificRestriction

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

  • public final class SpecificRestriction
    extends java.lang.Object

    Represents a specific vehicle restriction.

    Note: This is a beta release of this feature. Related APIs may change for new releases without a deprecation process.

    • Field Detail

      • type

        @NonNull
        public RestrictionType type

        Type of restriction.

      • value

        @NonNull
        public IntegerRange value

        Values for which the restriction applies.

    • Constructor Detail

      • 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.

    • 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