public final class TrackGroupArray
extends java.lang.Object
implements android.os.Parcelable
TrackGroups exposed by a MediaPeriod.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<TrackGroupArray> |
CREATOR |
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 |
|---|---|
int |
describeContents() |
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.
|
boolean |
isEmpty()
Returns whether this track group array is empty.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final TrackGroupArray EMPTY
public final int length
public static final android.os.Parcelable.Creator<TrackGroupArray> CREATOR
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 boolean isEmpty()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable