public final class TrackGroupArray extends Object
TrackGroups exposed by a MediaPeriod.| Modifier and Type | Field and Description |
|---|---|
static TrackGroupArray |
EMPTY
The empty array.
|
int |
length
The number of groups in the array.
|
| Constructor and Description |
|---|
TrackGroupArray(TrackGroup... trackGroups) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
TrackGroup |
get(int index)
Returns the group at a given index.
|
int |
hashCode() |
int |
indexOf(TrackGroup group)
Returns the index of a group within the array.
|
public static final TrackGroupArray EMPTY
public final int length
public TrackGroupArray(TrackGroup... trackGroups)
trackGroups - The groups. Must not be null or contain null elements, but may be empty.public TrackGroup get(int index)
index - The index of the group.public int indexOf(TrackGroup group)
group - The group.C.INDEX_UNSET if no such group exists.