Class TransitTransport

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

  • public final class TransitTransport
    extends java.lang.Object

    Holds all the transit transport information.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String category
      Human readable transport category (such as Bus, Gondola, Tram, Train, ...)
      Color color
      Color of the transport polyline and background for the transport name.
      java.lang.String headsign
      Transit line headsign.
      TransitMode mode
      Transit mode of transport in the route.
      java.lang.String name
      Transit line name.
      Color textColor
      Color of the transport name.
    • Constructor Summary

      Constructors 
      Constructor Description
      TransitTransport​(TransitMode mode, java.lang.String name, java.lang.String headsign, java.lang.String category, Color color, Color textColor)
      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

      • mode

        @NonNull
        public TransitMode mode

        Transit mode of transport in the route.

      • name

        @Nullable
        public java.lang.String name

        Transit line name.

      • headsign

        @Nullable
        public java.lang.String headsign

        Transit line headsign.

      • category

        @Nullable
        public java.lang.String category

        Human readable transport category (such as Bus, Gondola, Tram, Train, ...)

      • color

        @Nullable
        public Color color

        Color of the transport polyline and background for the transport name.

      • textColor

        @Nullable
        public Color textColor

        Color of the transport name.

    • Constructor Detail

      • TransitTransport

        public TransitTransport​(@NonNull
                                TransitMode mode,
                                @Nullable
                                java.lang.String name,
                                @Nullable
                                java.lang.String headsign,
                                @Nullable
                                java.lang.String category,
                                @Nullable
                                Color color,
                                @Nullable
                                Color textColor)

        Creates a new instance.

        Parameters:
        mode -

        Transit mode of transport in the route.

        name -

        Transit line name.

        headsign -

        Transit line headsign.

        category -

        Human readable transport category (such as Bus, Gondola, Tram, Train, ...)

        color -

        Color of the transport polyline and background for the transport name.

        textColor -

        Color of the transport name.

    • 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