public static final class RandomTrackSelection.Factory extends java.lang.Object implements TrackSelection.Factory
RandomTrackSelection instances.| Modifier and Type | Method and Description |
|---|---|
RandomTrackSelection |
createTrackSelection(TrackGroup group,
BandwidthMeter bandwidthMeter,
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, BandwidthMeter bandwidthMeter, int... tracks)
TrackSelection.FactorycreateTrackSelection in interface TrackSelection.Factorygroup - The TrackGroup. Must not be null.bandwidthMeter - A BandwidthMeter which can be used to select tracks.tracks - The indices of the selected tracks within the TrackGroup. Must not be
null or empty. May be in any order.