Class Transport.TransportThread

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ Transport.TransportThread

public class Transport.TransportThread

Enclosing Class:
Transport

Thread specific properties of a mass transit ride section of a Route.

Methods

TransportThread()

Use constructor with parameters in your code.

TransportThread(@NonNull Thread thread, boolean isRecommended, @NonNull List< Alert > alerts, @Nullable Stop alternateDepartureStop)
synchronized List< Alert > getAlerts()

Collection of important annotations for the section.

synchronized Stop getAlternateDepartureStop()

If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section.

synchronized boolean getIsRecommended()

Indicates that the mass transit router considers this thread the best one for the current section of the constucted route.

String getNativeName()
synchronized Thread getThread()

Mass transit thread.

void serialize(Archive archive)

Method Detail

TransportThread

public TransportThread ()

Use constructor with parameters in your code.

This one is for serialization only!

TransportThread

public TransportThread (@NonNull Thread thread, boolean isRecommended, @NonNull List< Alert > alerts, @Nullable Stop alternateDepartureStop)

getAlerts

public synchronized List< Alert > getAlerts ()

Collection of important annotations for the section.

getAlternateDepartureStop

public synchronized Stop getAlternateDepartureStop ()

If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section.

Optional field, can be null.

getIsRecommended

public synchronized boolean getIsRecommended ()

Indicates that the mass transit router considers this thread the best one for the current section of the constucted route.

getNativeName

public static String getNativeName ()

getThread

public synchronized Thread getThread ()

Mass transit thread.

serialize

public void serialize (Archive archive)