TrackSelectionArray


@UnstableApi
public final class TrackSelectionArray


An array of TrackSelections.

Summary

Public fields

final int

The length of this array.

Public constructors

TrackSelectionArray(@Nullable TrackSelection[] trackSelections)

Public methods

boolean
@Nullable TrackSelection
get(int index)

Returns the selection at a given index.

@Nullable 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(@Nullable TrackSelection[] trackSelections)
Parameters
@Nullable 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

public @Nullable TrackSelection[] getAll()

Returns the selections in a newly allocated array.

hashCode

public int hashCode()