Model


@CarProtocol
@RequiresCarApi(value = 3)
public final class Model


Information about the androidx.car.app.hardware model such as name, year and manufacturer.

Summary

Nested types

public final class Model.Builder

A builder of Model.

Public methods

boolean
@NonNull CarValue<String>

Returns the car manufacturer.

@NonNull CarValue<String>

Returns the car model name.

@NonNull CarValue<Integer>

Returns the car model year.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getManufacturer

Added in 1.1.0
public @NonNull CarValue<StringgetManufacturer()

Returns the car manufacturer.

getName

Added in 1.1.0
public @NonNull CarValue<StringgetName()

Returns the car model name.

getYear

Added in 1.1.0
public @NonNull CarValue<IntegergetYear()

Returns the car model year.

hashCode

public int hashCode()

toString

public @NonNull String toString()