mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Clarify that ShuffleOrder must be consistent in both directions
#minor-release PiperOrigin-RevId: 453622964
This commit is contained in:
parent
21ad8cfd6b
commit
2c2be2da92
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,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}.
|
||||||
*/
|
*/
|
||||||
public interface ShuffleOrder {
|
public interface ShuffleOrder {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue