org.jtheque.films.utils
Enum Constants.Site
java.lang.Object
java.lang.Enum<Constants.Site>
org.jtheque.films.utils.Constants.Site
- All Implemented Interfaces:
- Serializable, Comparable<Constants.Site>
- Enclosing class:
- Constants
public static enum Constants.Site
- extends Enum<Constants.Site>
A properties class for sites.
- Author:
- Baptiste Wicht
CINEMOVIES
public static final Constants.Site CINEMOVIES
ALLOCINE
public static final Constants.Site ALLOCINE
MOVIESCOVERS
public static final Constants.Site MOVIESCOVERS
DVDFR
public static final Constants.Site DVDFR
values
public static Constants.Site[] 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 (Constants.Site c : Constants.Site.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Constants.Site valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
value
public String value()
- Return the string value of the site.
- Returns:
- The string value of the site.
toString
public String toString()
- Overrides:
toString
in class Enum<Constants.Site>
Copyright © 2010 JTheque. All Rights Reserved.