Package com.jalios.util
Enum Browser.BrowserName
- java.lang.Object
-
- java.lang.Enum<Browser.BrowserName>
-
- com.jalios.util.Browser.BrowserName
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Browser.BrowserName>
- Enclosing class:
- Browser
public static enum Browser.BrowserName extends java.lang.Enum<Browser.BrowserName>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Browser
getBrowser()
java.lang.String
getUserAgent()
static Browser.BrowserName
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Browser.BrowserName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIREFOX
public static final Browser.BrowserName FIREFOX
-
IE
public static final Browser.BrowserName IE
-
IE7
public static final Browser.BrowserName IE7
-
IE8
public static final Browser.BrowserName IE8
-
IE9
public static final Browser.BrowserName IE9
-
IE10
public static final Browser.BrowserName IE10
-
IE11
public static final Browser.BrowserName IE11
-
IE_MOBILE
public static final Browser.BrowserName IE_MOBILE
-
SAFARI
public static final Browser.BrowserName SAFARI
-
CHROME
public static final Browser.BrowserName CHROME
-
IPAD
public static final Browser.BrowserName IPAD
-
IPHONE
public static final Browser.BrowserName IPHONE
-
ANDROID
public static final Browser.BrowserName ANDROID
-
BLACKBERRY
public static final Browser.BrowserName BLACKBERRY
-
-
Method Detail
-
values
public static Browser.BrowserName[] 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 (Browser.BrowserName c : Browser.BrowserName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Browser.BrowserName 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 namejava.lang.NullPointerException
- if the argument is null
-
getBrowser
public Browser getBrowser()
-
getUserAgent
public java.lang.String getUserAgent()
-
-