# Model

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/hardware/info/Model "View this page in Java")

<br />

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

<br />

*** ** * ** ***

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

## Summary

|                                                                                                        ### Nested types                                                                                                        |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[Model.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model.Builder) A builder of[Model](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model). |

|                                                                                     ### Public functions                                                                                     |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                          | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [CarValue](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!>` | [getManufacturer](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model#getManufacturer())`()` Returns the car manufacturer.                                                      |
| [CarValue](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!>` | [getName](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model#getName())`()` Returns the car model name.                                                                        |
| [CarValue](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`!>`       | [getYear](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model#getYear())`()` Returns the car model year.                                                                        |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model#hashCode())`()`                                                                                                  |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                            | [toString](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/Model#toString())`()`                                                                                                  |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### getManufacturer

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

```
fun getManufacturer(): CarValue<String!>
```

Returns the car manufacturer.  

### getName

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

```
fun getName(): CarValue<String!>
```

Returns the car model name.  

### getYear

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

```
fun getYear(): CarValue<Int!>
```

Returns the car model year.  

### hashCode

```
fun hashCode(): Int
```  

### toString

```
fun toString(): String
```