Destination

@CarProtocol
public final class Destination


A class representing information related to a destination.

Summary

Nested types

public final class Destination.Builder

A builder of Destination.

Public methods

boolean
@Nullable CarText

Returns the address of the destination or null if not set.

@Nullable CarIcon

Returns an image to display with the destination or null if not set.

@Nullable CarText

Returns the name of the destination or null if not set.

int
@NonNull String

Public methods

equals

Added in 1.4.0-rc02
public boolean equals(@Nullable Object other)

getAddress

Added in 1.0.0
public @Nullable CarText getAddress()

Returns the address of the destination or null if not set.

See also
setAddress

getImage

Added in 1.0.0
public @Nullable CarIcon getImage()

Returns an image to display with the destination or null if not set.

See also
setImage

getName

Added in 1.0.0
public @Nullable CarText getName()

Returns the name of the destination or null if not set.

See also
setName

hashCode

Added in 1.4.0-rc02
public int hashCode()

toString

Added in 1.4.0-rc02
public @NonNull String toString()