Interface ShuffleOrder
-
- All Known Implementing Classes:
FakeShuffleOrder,ShuffleOrder.DefaultShuffleOrder,ShuffleOrder.UnshuffledShuffleOrder
@Deprecated public interface ShuffleOrder
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classShuffleOrder.DefaultShuffleOrderDeprecated.The defaultShuffleOrderimplementation for random shuffle order.static classShuffleOrder.UnshuffledShuffleOrderDeprecated.AShuffleOrderimplementation which does not shuffle.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ShuffleOrdercloneAndClear()Deprecated.Returns a copy of the shuffle order with all elements removed.ShuffleOrdercloneAndInsert(int insertionIndex, int insertionCount)Deprecated.Returns a copy of the shuffle order with newly inserted elements.ShuffleOrdercloneAndRemove(int indexFrom, int indexToExclusive)Deprecated.Returns a copy of the shuffle order with a range of elements removed.intgetFirstIndex()Deprecated.Returns the first index in the shuffle order, orC.INDEX_UNSETif the shuffle order is empty.intgetLastIndex()Deprecated.Returns the last index in the shuffle order, orC.INDEX_UNSETif the shuffle order is empty.intgetLength()Deprecated.Returns length of shuffle order.intgetNextIndex(int index)Deprecated.Returns the next index in the shuffle order.intgetPreviousIndex(int index)Deprecated.Returns the previous index in the shuffle order.
-
-
-
Method Detail
-
getLength
int getLength()
Deprecated.Returns length of shuffle order.
-
getNextIndex
int getNextIndex(int index)
Deprecated.Returns the next index in the shuffle order.- Parameters:
index- An index.- Returns:
- The index after
index, orC.INDEX_UNSETifindexis the last element.
-
getPreviousIndex
int getPreviousIndex(int index)
Deprecated.Returns the previous index in the shuffle order.- Parameters:
index- An index.- Returns:
- The index before
index, orC.INDEX_UNSETifindexis the first element.
-
getLastIndex
int getLastIndex()
Deprecated.Returns the last index in the shuffle order, orC.INDEX_UNSETif the shuffle order is empty.
-
getFirstIndex
int getFirstIndex()
Deprecated.Returns the first index in the shuffle order, orC.INDEX_UNSETif the shuffle order is empty.
-
cloneAndInsert
ShuffleOrder cloneAndInsert(int insertionIndex, int insertionCount)
Deprecated.Returns a copy of the shuffle order with newly inserted elements.- Parameters:
insertionIndex- The index in the unshuffled order at which elements are inserted.insertionCount- The number of elements inserted atinsertionIndex.- Returns:
- A copy of this
ShuffleOrderwith newly inserted elements.
-
cloneAndRemove
ShuffleOrder cloneAndRemove(int indexFrom, int indexToExclusive)
Deprecated.Returns a copy of the shuffle order with a range of elements removed.- Parameters:
indexFrom- The starting index in the unshuffled order of the range to remove.indexToExclusive- The smallest index (must be greater or equal toindexFrom) that will not be removed.- Returns:
- A copy of this
ShuffleOrderwithout the elements in the removed range.
-
cloneAndClear
ShuffleOrder cloneAndClear()
Deprecated.Returns a copy of the shuffle order with all elements removed.
-
-