Lane.Builder

public static final class Lane.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.navigation.model.Lane.Builder


A builder of Lane.

Summary

Public constructors

Builder()

Returns an empty Lane.Builder instance.

Public methods

Lane.Builder addDirection(LaneDirection direction)

Adds a direction a driver can take from this lane.

Lane build()

Constructs the Lane defined by this builder.

Inherited methods

Public constructors

Builder

public Builder ()

Returns an empty Lane.Builder instance.

Public methods

addDirection

public Lane.Builder addDirection (LaneDirection direction)

Adds a direction a driver can take from this lane.

Parameters
direction LaneDirection

Returns
Lane.Builder

Throws
NullPointerException if direction is null

build

public Lane build ()

Constructs the Lane defined by this builder.

Returns
Lane