Google is committed to advancing racial equity for Black communities. See how.

Lane.Builder

public static final class Lane.Builder
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.navigation.model.Lane.Builder


A builder of Lane.

Summary

Public constructors

Builder()

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.

Lane.Builder clearDirections()

Clears any directions that may have been added with addDirection(LaneDirection) up to this point.

Inherited methods

Public constructors

Builder

public Builder ()

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

clearDirections

public Lane.Builder clearDirections ()

Clears any directions that may have been added with addDirection(LaneDirection) up to this point.

Returns
Lane.Builder