Android 12 Developer Preview is here! Try it out, and give us your feedback!

Destination

public final class Destination
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.navigation.model.Destination


A class representing information related to a destination.

Summary

Nested classes

class Destination.Builder

A builder of Destination

Public methods

static Destination.Builder builder(CharSequence name, CharSequence address)

Constructs a new builder of Destination with the given name and address.

static Destination.Builder builder()

Constructs a new builder of Destination.

boolean equals(Object other)
int hashCode()
String toString()

Inherited methods

Public methods

builder

public static Destination.Builder builder (CharSequence name, 
                CharSequence address)

Constructs a new builder of Destination with the given name and address.

Parameters
name CharSequence

address CharSequence

Returns
Destination.Builder

Throws
NullPointerException if name is null.
NullPointerException if address is null.

builder

public static Destination.Builder builder ()

Constructs a new builder of Destination.

Returns
Destination.Builder

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String