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 |
Public methods | |
---|---|
static
Destination.Builder
|
builder(CharSequence name, CharSequence address)
Constructs a new builder of |
static
Destination.Builder
|
builder()
Constructs a new builder of |
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 |
hashCode
public int hashCode ()
Returns | |
---|---|
int |
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.