Interface TimeRanges

  • All Implemented Interfaces:
    java.lang.Iterable

    
    public interface TimeRanges
     implements Iterable<T>
                        

    The TimeRanges API which can be used to get information regarding multiple periods in the playback.

    • 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 double getStart(int index) The start time of a certain TimeRange.
      abstract double getEnd(int index) The end time of a certain TimeRange.
      abstract int length() The total number of TimeRanges.
      • 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

      • getStart

         abstract double getStart(int index)

        The start time of a certain TimeRange.

        Parameters:
        index - The position of the TimeRange in the list of TimeRanges.
        Returns:

        The start time of the TimeRange at position 'index', in seconds.

      • getEnd

         abstract double getEnd(int index)

        The end time of a certain TimeRange.

        Parameters:
        index - The position of the TimeRange in the list of TimeRanges.
        Returns:

        The end time of the TimeRange at position 'index', in seconds.

      • length

         abstract int length()

        The total number of TimeRanges.

        Returns:

        The number of TimeRanges.