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

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

public int hashCode()

toString

public @NonNull String toString()