# CondensedItemStyle

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/model/CondensedItemStyle.java+class:androidx.car.app.model.CondensedItemStyle) Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

*** ** * ** ***


```
@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
public final class CondensedItemStyle
```

<br />

*** ** * ** ***

Holds properties related ONLY to the visual container around a `https://developer.android.com/reference/androidx/car/app/model/CondensedItem`.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/androidx/car/app/annotations/RequiresCarApi(value = 9) @https://developer.android.com/reference/androidx/car/app/annotations/ExperimentalCarApi public final class https://developer.android.com/reference/androidx/car/app/model/CondensedItemStyle.Builder` A builder for `https://developer.android.com/reference/androidx/car/app/model/CondensedItemStyle`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/model/CondensedItemStyle#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/Nullable.html https://developer.android.com/reference/androidx/car/app/model/Background` | `https://developer.android.com/reference/androidx/car/app/model/CondensedItemStyle#getBackground()()` Returns the `https://developer.android.com/reference/androidx/car/app/model/Background` of the container, or `null` if not set. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/Shape` | `https://developer.android.com/reference/androidx/car/app/model/CondensedItemStyle#getShape()()` Returns the `https://developer.android.com/reference/androidx/car/app/model/Shape` of the container, or `null` if not set. |
| `int` | `https://developer.android.com/reference/androidx/car/app/model/CondensedItemStyle#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/model/CondensedItemStyle#toString()()` |

## Public methods

### equals

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

### getBackground

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

```
public @Nullable Background getBackground()
```

Returns the `https://developer.android.com/reference/androidx/car/app/model/Background` of the container, or `null` if not set.

### getShape

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

```
public @Nullable Shape getShape()
```

Returns the `https://developer.android.com/reference/androidx/car/app/model/Shape` of the container, or `null` if not set.

### hashCode

```
public int hashCode()
```

### toString

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