Segment

open class Segment : VersionedParcelable
kotlin.Any
   ↳ androidx.car.cluster.navigation.Segment

Information regarding a road, street, highway, etc.

Summary

Public constructors
<init>(@NonNull name: String)

Creates a new Segment with the given name.

Public methods
open Boolean
equals(other: Any?)

open String

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

open Int

open String

Public constructors

<init>

Segment(@NonNull name: String)

Creates a new Segment with the given name.

Parameters
name String: Name of the segment.

Public methods

equals

open fun equals(other: Any?): Boolean

getName

@NonNull open fun getName(): String

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String