Lane

public final class Lane
extends Object

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


Configuration of a single lane of a road at a particular point in the navigation.

A Lane object describes all possible directions the driver could go from this lane, and indicates which directions the driver could take to stay on the navigation route.

Summary

Nested classes

class Lane.Builder

A builder of Lane

Public methods

boolean equals(Object other)
List<LaneDirection> getDirections()

Returns the list of directions a driver can take from this Lane.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getDirections

public List<LaneDirection> getDirections ()

Returns the list of directions a driver can take from this Lane.

Returns
List<LaneDirection>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String