Enum Class UserSeedArtistSource

java.lang.Object
java.lang.Enum<UserSeedArtistSource>
org.localify.user.support.UserSeedArtistSource
All Implemented Interfaces:
Serializable, Comparable<UserSeedArtistSource>, Constable

public enum UserSeedArtistSource extends Enum<UserSeedArtistSource>
Represents the source of a user's seed artist.
  • Enum Constant Details

    • USER

      public static final UserSeedArtistSource USER
      The user manually added the artist.
    • SPOTIFY

      public static final UserSeedArtistSource SPOTIFY
      The artist was imported from the user's Spotify account (short term top artists).
    • APPLE_MUSIC

      public static final UserSeedArtistSource APPLE_MUSIC
      The artist was imported from the user's Apple Music account.
    • SPOTIFY_MEDIUM_TERM

      public static final UserSeedArtistSource SPOTIFY_MEDIUM_TERM
      The artist was imported from the user's Spotify account (medium term top artists).
    • SPOTIFY_LONG_TERM

      public static final UserSeedArtistSource SPOTIFY_LONG_TERM
      The artist was imported from the user's Spotify account (long term top artists).
  • Method Details

    • values

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