- All Implemented Interfaces:
Serializable,Comparable<WeightTrackType>,Constable
The source of a
WeightEntry.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe weight entry is a collection, and when the weight is chosen, it will follow the ordering rules of the collection.The weight entry is a function, and will be evaluated when the weight entry is picked.The weight entry is a list of tracks, and will choose a random track from the list when the weight entry is picked.The weight entry is aPlaylist, and will choose a random track from the playlist when the weight entry is picked.The weight entry is a single track.The weight entry is another set of weights, allowing for nested weights. -
Method Summary
Modifier and TypeMethodDescriptionstatic WeightTrackTypeReturns the enum constant of this class with the specified name.static WeightTrackType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE_TRACK
The weight entry is a single track. -
LIST
The weight entry is a list of tracks, and will choose a random track from the list when the weight entry is picked. -
COLLECTION
The weight entry is a collection, and when the weight is chosen, it will follow the ordering rules of the collection. See the Collection Weights docs for more info. -
WEIGHTS
The weight entry is another set of weights, allowing for nested weights. See the Nested Weights docs for more info. -
PLAYLIST
The weight entry is aPlaylist, and will choose a random track from the playlist when the weight entry is picked. -
FUNCTION
The weight entry is a function, and will be evaluated when the weight entry is picked. The function should always supply a track. See the Function Call Weights docs for more info.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-