Step
public
final
class
Step
extends Object
java.lang.Object | |
↳ | com.google.android.libraries.car.app.navigation.model.Step |
Represents a step that the driver should take in order to remain on the current navigation route.
Example of steps are turning onto a street, taking a highway exit and merging onto a different highway, or continuing straight through a roundabout.
Summary
Nested classes | |
---|---|
class |
Step.Builder
A builder of |
Public methods | |
---|---|
static
Step.Builder
|
builder(CharSequence cue)
Constructs a new builder of |
boolean
|
equals(Object other)
|
int
|
hashCode()
|
Step.Builder
|
newBuilder()
Returns a new |
String
|
toString()
|
Inherited methods | |
---|---|
Public methods
builder
public static Step.Builder builder (CharSequence cue)
Constructs a new builder of Step
with a cue.
A cue must always be set when the step is created and is used as a fallback when Maneuver
is not set or is unavailable.
Parameters | |
---|---|
cue |
CharSequence |
Returns | |
---|---|
Step.Builder |
Throws | |
---|---|
NullPointerException |
if cue is null . |
See also:
hashCode
public int hashCode ()
Returns | |
---|---|
int |
newBuilder
public Step.Builder newBuilder ()
Returns a new Step.Builder
instance configured with the same data as this Step
instance.
Returns | |
---|---|
Step.Builder |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-15 UTC.