Class Transport

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ Transport

public class Transport

Contains information about the mass transit ride section of a Route for a specific mass transit Line.

Nested Classes

Constructors

Transport()

Use constructor with parameters in your code.

Transport(@NonNull Line line, @NonNull List< TransportThread > transports)

Methods

synchronized Line getLine()

Mass transit line.

String getNativeName()
synchronized List< TransportThread > getTransports()

Collection of mass transit threads of the specified line suitable for the constructed route.

void serialize(Archive archive)

Constructor Detail

Transport

public Transport ()

Use constructor with parameters in your code.

This one is for serialization only!

Transport

public Transport (@NonNull Line line, @NonNull List< TransportThread > transports)

Method Detail

getLine

public synchronized Line getLine ()

Mass transit line.

getNativeName

public static String getNativeName ()

getTransports

public synchronized List< TransportThread > getTransports ()

Collection of mass transit threads of the specified line suitable for the constructed route.

serialize

public void serialize (Archive archive)