public static final class RandomTrackSelection.Factory extends Object implements TrackSelection.Factory
RandomTrackSelection
instances.Modifier and Type | Method and Description |
---|---|
RandomTrackSelection |
createTrackSelection(TrackGroup group,
int... tracks)
Creates a new selection.
|
public Factory()
public Factory(int seed)
seed
- A seed for the Random
instance used by the factory.public RandomTrackSelection createTrackSelection(TrackGroup group, int... tracks)
TrackSelection.Factory
createTrackSelection
in interface TrackSelection.Factory
group
- The TrackGroup
. Must not be null.tracks
- The indices of the selected tracks within the TrackGroup
. Must not be
null or empty. May be in any order.