Class Thread

com.yandex.mapkit.masstransit

java.lang.Object ⇽ Thread

public class Thread

Describes a public transport thread.

A thread is one of the Line variants. For example, one line can have two threads: direct and return.

Constructors

Thread()

Use constructor with parameters in your code.

Thread(String id, List< Stop > essentialStops)
Thread()

Use constructor with parameters in your code.

Thread(String id, List< Stop > essentialStops)

Methods

synchronized List< Stop > getEssentialStops()

List of important stops on the thread, such as the first and last stops.

synchronized String getId()

Thread ID.

String getNativeName()
void serialize(Archive archive)
synchronized List< Stop > getEssentialStops()

List of important stops on the thread, such as the first and last stops.

synchronized String getId()

Thread ID.

String getNativeName()
void serialize(Archive archive)

Constructor Detail

Thread

public Thread ()

Use constructor with parameters in your code.

This one is for serialization only!

Thread

public Thread (String id, List< Stop > essentialStops)

Method Detail

getEssentialStops

public synchronized List< Stop > getEssentialStops ()

List of important stops on the thread, such as the first and last stops.

getId

public synchronized String getId ()

Thread ID.

getNativeName

public static String getNativeName ()

serialize

public void serialize (Archive archive)