public enum Browser extends Enum<Browser>
The *Browser data* in this file is retrieved from caniuse.com and licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0).
THIS FILE IS GENERATED. DO NOT EDIT DIRECTLY.
See class com.salesforce.omakase.tools.GenerateBrowserEnum for instructions on updating.
Enum Constant and Description |
---|
ANDROID
The 'Android Browser' browser
|
CHROME
The 'Google Chrome' browser
|
EDGE
The 'Microsoft Edge' browser
|
FIREFOX
The 'Firefox' browser
|
IE
The 'Internet Explorer' browser
|
IE_MOBILE
The 'IE Mobile' browser
|
IOS_SAFARI
The 'Safari on iOS' browser
|
OPERA
The 'Opera' browser
|
SAFARI
The 'Safari' browser
|
Modifier and Type | Method and Description |
---|---|
String |
browserName()
Gets the name of the browser.
|
String |
key()
Gets the caniuse.com browser key.
|
Prefix |
prefix()
Gets the prefix used by this browser.
|
String |
toString() |
static Browser |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Browser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
List<Double> |
versions()
Gets the list of browser versions, descending order (latest first).
|
public static final Browser IE
public static final Browser EDGE
public static final Browser OPERA
public static final Browser CHROME
public static final Browser SAFARI
public static final Browser FIREFOX
public static final Browser ANDROID
public static final Browser IE_MOBILE
public static final Browser IOS_SAFARI
public static Browser[] values()
for (Browser c : Browser.values()) System.out.println(c);
public static Browser 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 String browserName()
public Prefix prefix()
public String key()
public List<Double> versions()
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.