Interface TrackList

  • All Implemented Interfaces:
    com.theoplayer.android.api.util.SimpleList , java.lang.Iterable

    
    public interface TrackList<T extends Track>
     implements SimpleList<T>
                        

    List of tracks.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int length() The number of tracks in the list.
      abstract T getItem(int index) Return the track at the requested index in the list.
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • length

         abstract int length()

        The number of tracks in the list.

        Returns:

        The number of tracks in the list.

      • getItem

        @NonNull() abstract T getItem(int index)

        Return the track at the requested index in the list.

        Parameters:
        index - - A number representing the index of a track in the list.
        Returns:

        The track at the given `index` in the list.