Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Segment

public class Segment
extends Object implements VersionedParcelable

java.lang.Object
   ↳ androidx.car.cluster.navigation.Segment


Information regarding a road, street, highway, etc.

Summary

Public constructors

Segment(String name)

Creates a new Segment with the given name.

Public methods

boolean equals(Object o)
String getName()

Returns the name of the segment (e.g.: "Wallaby Way", "US-101", "Charleston Rd", etc.)

int hashCode()
String toString()

Inherited methods

Public constructors

Segment

public Segment (String name)

Creates a new Segment with the given name.

Parameters
name String: Name of the segment.

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getName

public String getName ()

Returns the name of the segment (e.g.: "Wallaby Way", "US-101", "Charleston Rd", etc.)

Returns
String

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String