Parcelable, Comparable<StreamKey>public final class StreamKey extends Object implements Comparable<StreamKey>, Parcelable
The stream key consists of a period index, a group index within the period and a track index within the group. The interpretation of these indices depends on the type of media for which the stream key is used.
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>| Modifier and Type | Field | Description |
|---|---|---|
static Parcelable.Creator<StreamKey> |
CREATOR |
|
int |
groupIndex |
The group index.
|
int |
periodIndex |
The period index.
|
int |
trackIndex |
The track index.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor | Description |
|---|---|
StreamKey(int groupIndex,
int trackIndex) |
|
StreamKey(int periodIndex,
int groupIndex,
int trackIndex) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(StreamKey o) |
|
int |
describeContents() |
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
String |
toString() |
|
void |
writeToParcel(Parcel dest,
int flags) |
public final int periodIndex
public final int groupIndex
public final int trackIndex
public static final Parcelable.Creator<StreamKey> CREATOR
public StreamKey(int groupIndex,
int trackIndex)
groupIndex - The group index.trackIndex - The track index.public StreamKey(int periodIndex,
int groupIndex,
int trackIndex)
periodIndex - The period index.groupIndex - The group index.trackIndex - The track index.public int compareTo(StreamKey o)
compareTo in interface Comparable<StreamKey>public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable