retail
Enum MusicalGenre

java.lang.Object
  extended by java.lang.Enum<MusicalGenre>
      extended by retail.MusicalGenre
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MusicalGenre>

public enum MusicalGenre
extends java.lang.Enum<MusicalGenre>


Enum Constant Summary
blues
           
classical
           
country
           
emo
           
jazz
           
pop
           
punk
           
rap
           
reggae
           
rock
           
ska
           
soul
           
techno
           
 
Method Summary
static MusicalGenre valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MusicalGenre[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

rock

public static final MusicalGenre rock

pop

public static final MusicalGenre pop

rap

public static final MusicalGenre rap

country

public static final MusicalGenre country

jazz

public static final MusicalGenre jazz

blues

public static final MusicalGenre blues

classical

public static final MusicalGenre classical

soul

public static final MusicalGenre soul

reggae

public static final MusicalGenre reggae

ska

public static final MusicalGenre ska

punk

public static final MusicalGenre punk

techno

public static final MusicalGenre techno

emo

public static final MusicalGenre emo
Method Detail

values

public static final MusicalGenre[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MusicalGenre c : MusicalGenre.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MusicalGenre 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 name