Commit 2c2be2da by ibaker Committed by Marc Baechinger

Clarify that `ShuffleOrder` must be consistent in both directions

#minor-release

PiperOrigin-RevId: 453622964
parent 21ad8cfd
......@@ -23,6 +23,9 @@ import java.util.Random;
* Shuffled order of indices.
*
* <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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment