Enum User.Genre
- java.lang.Object
-
- java.lang.Enum<User.Genre>
-
- edu.cnm.deepdive.tunefull.model.entity.User.Genre
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<User.Genre>
- Enclosing class:
- User
public static enum User.Genre extends java.lang.Enum<User.Genre>
TheGenre
enum enumerates different musical genres that the user can select from for their favorite genre.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static User.Genre
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static User.Genre[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASSICAL
public static final User.Genre CLASSICAL
-
ROCK_N_ROLL
public static final User.Genre ROCK_N_ROLL
-
POP
public static final User.Genre POP
-
JAZZ
public static final User.Genre JAZZ
-
METAL
public static final User.Genre METAL
-
HIPHOP
public static final User.Genre HIPHOP
-
R_AND_B
public static final User.Genre R_AND_B
-
BLUES
public static final User.Genre BLUES
-
FOLK
public static final User.Genre FOLK
-
OPERA
public static final User.Genre OPERA
-
ELECTRONIC
public static final User.Genre ELECTRONIC
-
ALTERNATIVE
public static final User.Genre ALTERNATIVE
-
PUNK
public static final User.Genre PUNK
-
REGGAE
public static final User.Genre REGGAE
-
CLASSIC_ROCK
public static final User.Genre CLASSIC_ROCK
-
DISCO
public static final User.Genre DISCO
-
SWING
public static final User.Genre SWING
-
FUNK
public static final User.Genre FUNK
-
COUNTRY
public static final User.Genre COUNTRY
-
CONJUNTO
public static final User.Genre CONJUNTO
-
LATIN
public static final User.Genre LATIN
-
FILM
public static final User.Genre FILM
-
-
Method Detail
-
values
public static User.Genre[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (User.Genre c : User.Genre.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static User.Genre valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-