public enum SitePreference extends java.lang.Enum<SitePreference>
Enum Constant and Description |
---|
MOBILE
The user prefers the 'mobile' site.
|
NORMAL
The user prefers the 'normal' site.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMobile()
Tests if this is the 'mobile' SitePreference.
|
static SitePreference |
valueOf(java.lang.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 SitePreference[] values()
for (SitePreference c : SitePreference.values()) System.out.println(c);
public static SitePreference valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isMobile()