Class Line

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ Line

public class Line

Describes a public transport line.

Nested Classes

class Line.Style

Constructors

Line()

Use constructor with parameters in your code.

Line(@NonNull String id, @NonNull String name, @NonNull List< String > vehicleTypes, @Nullable Style style, boolean isNight)

Methods

synchronized String getId()

Line ID.

synchronized boolean getIsNight()

True if the line operates only at night.

synchronized String getName()

Line name.

String getNativeName()
synchronized Style getStyle()

Line style; see Style.

synchronized List< String > getVehicleTypes()

List of line types.

void serialize(Archive archive)

Constructor Detail

Line

public Line ()

Use constructor with parameters in your code.

This one is for serialization only!

Line

public Line (@NonNull String id, @NonNull String name, @NonNull List< String > vehicleTypes, @Nullable Style style, boolean isNight)

Method Detail

getId

public synchronized String getId ()

Line ID.

getIsNight

public synchronized boolean getIsNight ()

True if the line operates only at night.

getName

public synchronized String getName ()

Line name.

getNativeName

public static String getNativeName ()

getStyle

public synchronized Style getStyle ()

Line style; see Style.

Optional field, can be null.

getVehicleTypes

public synchronized List< String > getVehicleTypes ()

List of line types.

Starts from the most detailed, ends with the most general.

serialize

public void serialize (Archive archive)