Parcelablepublic final class TrackGroupArray extends Object implements Parcelable
TrackGroups.Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>| Modifier and Type | Field | Description |
|---|---|---|
static Parcelable.Creator<TrackGroupArray> |
CREATOR |
|
static TrackGroupArray |
EMPTY |
The empty array.
|
int |
length |
The number of groups in the array.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor | Description |
|---|---|
TrackGroupArray(TrackGroup... trackGroups) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
describeContents() |
|
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.
|
boolean |
isEmpty() |
Returns whether this track group array is empty.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final TrackGroupArray EMPTY
public final int length
public static final Parcelable.Creator<TrackGroupArray> CREATOR
public TrackGroupArray(TrackGroup... trackGroups)
trackGroups - The groups. 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 describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable