Enum Class Action.Type

java.lang.Object
java.lang.Enum<Action.Type>
dev.blackilykat.pmp.Action.Type
All Implemented Interfaces:
Serializable, Comparable<Action.Type>, Constable
Enclosing class:
Action

public static enum Action.Type extends Enum<Action.Type>
What kind of modification an action performs on the library
  • Enum Constant Details

    • ADD

      public static final Action.Type ADD
      Add a new track to the library
    • REMOVE

      public static final Action.Type REMOVE
      Remove a track from the library
    • REPLACE

      public static final Action.Type 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

      public static final Action.Type CHANGE_METADATA
      Change the metadata of a track while keeping the audio data untouched
  • Constructor Details

    • Type

      private Type()
  • Method Details

    • values

      public static Action.Type[] 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

      public static Action.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null