> Documentation index: https://developer.android.com/reference/llms.txt

# HlsRedundantGroup.GroupKey

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

*** ** * ** ***


```
public class HlsRedundantGroup.GroupKey
```

<br />

*** ** * ** ***

Defines a key that groups `variants` or `renditions` into one `HlsRedundantGroup`.

## Summary

| ### Public fields |
|---|---|
| `final Format` | `format` The representative `Format` for the `grouped variants` or the `grouped renditions`. |
| `final @Nullable String` | `name` The `name` of the `grouped renditions`. |
| `final @Nullable String` | `stableId` The stable identifier shared by variants or renditions, or `null`. |

| ### Public constructors |
|---|
| `GroupKey(Format format, @Nullable String stableId)` Creates a `GroupKey`. |
| `GroupKey(Format format, @Nullable String stableId, @Nullable String name)` Creates a `GroupKey`. |

| ### Public methods |
|---|---|
| `boolean` | `equals(@Nullable Object other)` |
| `int` | `hashCode()` |

## Public fields

### format

```
public final Format format
```

The representative `Format` for the `grouped variants` or the `grouped renditions`.

### name

```
public final @Nullable String name
```

The `name` of the `grouped renditions`. This can be `null` if unknown or the `GroupKey` groups `variants`.

### stableId

```
public final @Nullable String stableId
```

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

If the `GroupKey` groups `variants`, then this field is the `stableVariantId` of the variants; If the `GroupKey` groups ` renditions`, then this field is the `stableRenditionId` of the renditions.

## Public constructors

### GroupKey

```
public GroupKey(Format format, @Nullable String stableId)
```

Creates a `GroupKey`.

| Parameters |
|---|---|
| `Format format` | See `format`. |
| `@Nullable String stableId` | See `stableId`. |

### GroupKey

```
public GroupKey(Format format, @Nullable String stableId, @Nullable String name)
```

Creates a `GroupKey`.

| Parameters |
|---|---|
| `Format format` | See `format`. |
| `@Nullable String stableId` | See `stableId`. |
| `@Nullable String name` | See `name`. |

## Public methods

### equals

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

### hashCode

```
public int hashCode()
```