edu.uci.ics.inf111.dvdvendor.app
Enum Utils.genre
java.lang.Object
java.lang.Enum<Utils.genre>
edu.uci.ics.inf111.dvdvendor.app.Utils.genre
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Utils.genre>
- Enclosing class:
- Utils
public static enum Utils.genre
- extends java.lang.Enum<Utils.genre>
Enumeration that represents the different genres the DVD can belong to.
Method Summary |
static Utils.genre |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Utils.genre[] |
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 |
ACTION_ADVENTURE
public static final Utils.genre ACTION_ADVENTURE
ANIMATION
public static final Utils.genre ANIMATION
COMEDY
public static final Utils.genre COMEDY
CRIME
public static final Utils.genre CRIME
DRAMA
public static final Utils.genre DRAMA
FAMILY
public static final Utils.genre FAMILY
FOREIGN
public static final Utils.genre FOREIGN
HITMOVIES
public static final Utils.genre HITMOVIES
HOLIDAY
public static final Utils.genre HOLIDAY
HORROR
public static final Utils.genre HORROR
KIDS
public static final Utils.genre KIDS
MUSICAL
public static final Utils.genre MUSICAL
ROMANCE
public static final Utils.genre ROMANCE
SCIFI_FANTASY
public static final Utils.genre SCIFI_FANTASY
SUSPENSE
public static final Utils.genre SUSPENSE
TELEVISION
public static final Utils.genre TELEVISION
WAR
public static final Utils.genre WAR
WESTERN
public static final Utils.genre WESTERN
values
public static final Utils.genre[] 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(Utils.genre c : Utils.genre.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Utils.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 name