Enum Class DataSource

java.lang.Object
java.lang.Enum<DataSource>
org.localify.common.DataSource
All Implemented Interfaces:
Serializable, Comparable<DataSource>, Constable

public enum DataSource extends Enum<DataSource>
Represents the source of a piece of data.
  • Enum Constant Details

    • spotify

      public static final DataSource spotify
      Spotify
    • apple

      public static final DataSource apple
      Apple Music
    • google

      public static final DataSource google
      Google
    • bandsintown

      public static final DataSource bandsintown
      Bandsintown
    • lastfm

      public static final DataSource lastfm
      Last.fm
    • rateyourmusic

      public static final DataSource rateyourmusic
      Rate Your Music
    • festival

      public static final DataSource festival
      Festival data
    • pollstar

      public static final DataSource pollstar
      Pollstar
  • Method Details

    • values

      public static DataSource[] 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 DataSource 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