Class TrackGroupArray

    • Constructor Detail

      • TrackGroupArray

        public TrackGroupArray​(TrackGroup... trackGroups)
        Parameters:
        trackGroups - The groups. May be empty.
    • Method Detail

      • get

        public TrackGroup get​(int index)
        Returns the group at a given index.
        Parameters:
        index - The index of the group.
        Returns:
        The group.
      • indexOf

        public int indexOf​(TrackGroup group)
        Returns the index of a group within the array.
        Parameters:
        group - The group.
        Returns:
        The index of the group, or C.INDEX_UNSET if no such group exists.
      • isEmpty

        public boolean isEmpty()
        Returns whether this track group array is empty.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object