Enum Class Action.Type
- All Implemented Interfaces:
Serializable, Comparable<Action.Type>, Constable
- Enclosing class:
Action
What kind of modification an action performs on the library
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd a new track to the libraryChange the metadata of a track while keeping the audio data untouchedRemove a track from the libraryReplace the file of a track with another one (would be the same song, this action would only happen if like someone changes the source, say, to get a higher quality version) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Action.TypeReturns the enum constant of this class with the specified name.static Action.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
Add a new track to the library -
REMOVE
Remove a track from the library -
REPLACE
Replace the file of a track with another one (would be the same song, this action would only happen if like someone changes the source, say, to get a higher quality version) -
CHANGE_METADATA
Change the metadata of a track while keeping the audio data untouched
-
-
Constructor Details
-
Type
private Type()
-
-
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
-