mirror of
https://github.com/androidx/media.git
synced 2025-05-14 11:09:53 +08:00
Clarify that ShuffleOrder
must be consistent in both directions
#minor-release PiperOrigin-RevId: 453622964
This commit is contained in:
parent
96274bfd98
commit
4a6f431f01
@ -24,6 +24,9 @@ import java.util.Random;
|
|||||||
* Shuffled order of indices.
|
* Shuffled order of indices.
|
||||||
*
|
*
|
||||||
* <p>The shuffle order must be immutable to ensure thread safety.
|
* <p>The shuffle order must be immutable to ensure thread safety.
|
||||||
|
*
|
||||||
|
* <p>The order must be consistent when traversed both {@linkplain #getNextIndex(int) forwards} and
|
||||||
|
* {@linkplain #getPreviousIndex(int) backwards}.
|
||||||
*/
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public interface ShuffleOrder {
|
public interface ShuffleOrder {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user