public final class TrackGroupArray extends Object
TrackGroup
s exposed by a MediaPeriod
.Modifier and Type | Field and Description |
---|---|
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 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.