TrackSelectionArray


@UnstableApi
public final class TrackSelectionArray


An array of TrackSelections.

Summary

Public fields

final int

The length of this array.

Public constructors

TrackSelectionArray(@NullableType TrackSelection[] trackSelections)

Public methods

boolean
@Nullable TrackSelection
get(int index)

Returns the selection at a given index.

TrackSelection[]

Returns the selections in a newly allocated array.

int

Public fields

length

public final int length

The length of this array.

Public constructors

TrackSelectionArray

public TrackSelectionArray(@NullableType TrackSelection[] trackSelections)
Parameters
@NullableType TrackSelection[] trackSelections

The selections. Must not be null, but may contain null elements.

Public methods

equals

public boolean equals(@Nullable Object obj)

get

public @Nullable TrackSelection get(int index)

Returns the selection at a given index.

Parameters
int index

The index of the selection.

Returns
@Nullable TrackSelection

The selection.

getAll

@NullableType
public TrackSelection[] getAll()

Returns the selections in a newly allocated array.

hashCode

public int hashCode()