Destination
public
final
class
Destination
extends Object
java.lang.Object | |
↳ | androidx.car.app.navigation.model.Destination |
A class representing information related to a destination.
Summary
Nested classes | |
---|---|
class |
Destination.Builder
A builder of |
Public methods | |
---|---|
boolean
|
equals(Object other)
|
CarText
|
getAddress()
Returns the address of the destination or |
CarIcon
|
getImage()
Returns an image to display with the destination or |
CarText
|
getName()
Returns the name of the destination or |
int
|
hashCode()
|
String
|
toString()
|
Inherited methods | |
---|---|
Public methods
equals
public boolean equals (Object other)
Parameters | |
---|---|
other |
Object |
Returns | |
---|---|
boolean |
getAddress
public CarText getAddress ()
Returns the address of the destination or null
if not set.
Returns | |
---|---|
CarText |
getImage
public CarIcon getImage ()
Returns an image to display with the destination or null
if not set.
Returns | |
---|---|
CarIcon |
See also:
getName
public CarText getName ()
Returns the name of the destination or null
if not set.
Returns | |
---|---|
CarText |
hashCode
public int hashCode ()
Returns | |
---|---|
int |
toString
public String toString ()
Returns | |
---|---|
String |
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 2021-02-24 UTC.