public enum MediaType extends Enum<MediaType>
| Enum Constant and Description |
|---|
EPISODE
TV Episode media type
|
MOVIE
Movie media type
|
SEASON
TV Season media type
|
TV
TV Show media type
|
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
fromString(String mediaType)
Convert a string into an Enum type
|
static MediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaType MOVIE
public static final MediaType TV
public static final MediaType SEASON
public static final MediaType EPISODE
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static MediaType fromString(String mediaType)
mediaType - IllegalArgumentException - If type is not recognisedCopyright © 2012–2017. All rights reserved.