public enum OperaProduct extends Enum<OperaProduct>
is(OperaProduct) to compare and check
products.| Enum Constant and Description |
|---|
ALL
Never returned, but can be used to request any product.
|
CORE |
DESKTOP |
MINI |
MOBILE |
SDK |
| Modifier and Type | Method and Description |
|---|---|
static OperaProduct |
get(String product) |
String |
getDescriptionString() |
boolean |
is(OperaProduct compareWith)
Compares current product with given product.
|
String |
toString() |
static OperaProduct |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperaProduct[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperaProduct CORE
public static final OperaProduct DESKTOP
public static final OperaProduct SDK
public static final OperaProduct MOBILE
public static final OperaProduct MINI
public static final OperaProduct ALL
public static OperaProduct[] values()
for (OperaProduct c : OperaProduct.values()) System.out.println(c);
public static OperaProduct 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 getDescriptionString()
public String toString()
toString in class Enum<OperaProduct>public boolean is(OperaProduct compareWith)
compareWith - the product to compare the current one withpublic static OperaProduct get(String product)
Copyright © 2012. All Rights Reserved.