public enum SitePreference extends Enum<SitePreference>
Enum Constant and Description |
---|
MOBILE
The user prefers the 'mobile' site.
|
NORMAL
The user prefers the 'normal' site.
|
TABLET
The user prefers the 'tablet' site.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMobile()
Tests if this is the 'mobile' SitePreference.
|
boolean |
isNormal()
Tests if this is the 'normal' SitePreference.
|
boolean |
isTablet()
Tests if this is the 'tablet' SitePreference.
|
static SitePreference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SitePreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SitePreference NORMAL
public static final SitePreference MOBILE
public static final SitePreference TABLET
public static SitePreference[] values()
for (SitePreference c : SitePreference.values()) System.out.println(c);
public static SitePreference 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 boolean isNormal()
public boolean isMobile()
public boolean isTablet()