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

  • public final class TimeRestriction
    extends java.lang.Object

    Represents restriction based on time.

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TimeRestriction.Category
      Category of time restriction.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeRestriction()
      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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • applicability

        @NonNull
        public java.util.List<TransportType> applicability

        Specifies to which transportation types the time rules apply.

      • timeRule

        @Nullable
        public TimeRule timeRule

        Time rule in TimeDomain format, which is part of the GDF specification.

    • Constructor Detail

      • TimeRestriction

        public TimeRestriction()

        Creates a new instance.

    • 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