# Model

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/info/Model.java+class:androidx.car.app.hardware.info.Model) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

*** ** * ** ***


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

<br />

*** ** * ** ***

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

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/hardware/info/Model.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/hardware/info/Model`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/info/Model#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue<https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/info/Model#getManufacturer()()` Returns the car manufacturer. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue<https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/info/Model#getName()()` Returns the car model name. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue<https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/info/Model#getYear()()` Returns the car model year. |
| `int` | `https://developer.android.com/reference/androidx/car/app/hardware/info/Model#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/hardware/info/Model#toString()()` |

## Public methods

### equals

```
public boolean equals(@Nullable Object other)
```

### getManufacturer

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

```
public @NonNull CarValue<String> getManufacturer()
```

Returns the car manufacturer.

### getName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

```
public @NonNull CarValue<String> getName()
```

Returns the car model name.

### getYear

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

```
public @NonNull CarValue<Integer> getYear()
```

Returns the car model year.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```