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

LaneController

public class LaneController
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.testing.model.LaneController


A controller that allows testing of a Lane.

This controller allows retrieving the LaneDirections added via Lane.Builder.addDirection(LaneDirection).

Summary

Public methods

Lane get()

Retrieves the Lane that this controller is controlling.

List<LaneDirection> getDirections()

Returns all of the LaneDirections added to the Lane being controlled.

static LaneController of(Lane lane)

Creates a LaneController to control a Lane for testing.

Inherited methods

Public methods

get

public Lane get ()

Retrieves the Lane that this controller is controlling.

Returns
Lane

getDirections

public List<LaneDirection> getDirections ()

Returns all of the LaneDirections added to the Lane being controlled.

Returns
List<LaneDirection>

of

public static LaneController of (Lane lane)

Creates a LaneController to control a Lane for testing.

Parameters
lane Lane

Returns
LaneController