Class TransitDeparture

  • java.lang.Object
    • com.here.sdk.routing.TransitDeparture

  • public final class TransitDeparture
    extends java.lang.Object

    This struct holds the transit departure or arrival information.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Integer delay
      The accumulated delay in seconds from the scheduled time of the event.
      RoutePlace place
      The departure or arrival place.
      TransitDepartureStatus status
      Status of the departure.
      java.util.Date time
      Expected departure or arrival time of the event.
    • 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

      • place

        @NonNull
        public RoutePlace place

        The departure or arrival place.

      • time

        @Nullable
        public java.util.Date time

        Expected departure or arrival time of the event.

      • delay

        @Nullable
        public java.lang.Integer delay

        The accumulated delay in seconds from the scheduled time of the event.

    • Constructor Detail

      • TransitDeparture

        public TransitDeparture​(@NonNull
                                RoutePlace place,
                                @Nullable
                                java.util.Date time,
                                @Nullable
                                java.lang.Integer delay,
                                @Nullable
                                TransitDepartureStatus status)

        Creates a new instance.

        Parameters:
        place -

        The departure or arrival place.

        time -

        Expected departure or arrival time of the event.

        delay -

        The accumulated delay in seconds from the scheduled time of the event.

        status -

        Status of the departure.

    • 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