public final class TrackGroupArray
extends java.lang.Object
TrackGroup
s 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(java.lang.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.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object