# HlsRedundantGroup.GroupKey

Artifact: [androidx.media3:media3-exoplayer-hls](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.java+class:androidx.media3.exoplayer.hls.playlist.HlsRedundantGroup.GroupKey)

*** ** * ** ***


```
class HlsRedundantGroup.GroupKey
```

<br />

*** ** * ** ***

Defines a key that groups `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Variant` or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition` into one `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#GroupKey(androidx.media3.common.Format,java.lang.String)(format: https://developer.android.com/reference/kotlin/androidx/media3/common/Format!, stableId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Creates a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#GroupKey(androidx.media3.common.Format,java.lang.String,java.lang.String)(format: https://developer.android.com/reference/kotlin/androidx/media3/common/Format!, stableId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Creates a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey`. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#equals(java.lang.Object)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Format!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#format()` The representative `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` for the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Variant` or the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#name()` The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition#name()` of the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#stableId()` The stable identifier shared by variants or renditions, or `null`. |

## Public constructors

### GroupKey

```
GroupKey(format: Format!, stableId: String?)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey`.

| Parameters |
|---|---|
| `format: https://developer.android.com/reference/kotlin/androidx/media3/common/Format!` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#format()`. |
| `stableId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#stableId()`. |

### GroupKey

```
GroupKey(format: Format!, stableId: String?, name: String?)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey`.

| Parameters |
|---|---|
| `format: https://developer.android.com/reference/kotlin/androidx/media3/common/Format!` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#format()`. |
| `stableId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#stableId()`. |
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey#name()`. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### format

```
val format: Format!
```

The representative `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` for the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Variant` or the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition`.

### name

```
val name: String?
```

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition#name()` of the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition`. This can be `null` if unknown or the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey` groups `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Variant`.

### stableId

```
val stableId: String?
```

The stable identifier shared by variants or renditions, or `null`.

If the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey` groups `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Variant`, then this field is the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Variant#stableVariantId()` of the variants; If the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsRedundantGroup.GroupKey` groups `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition`, then this field is the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist.Rendition#stableRenditionId()` of the renditions.