public static enum Internet.UserAgent extends Enum<Internet.UserAgent>
Enum Constant and Description |
---|
AOL |
CHROME |
FIREFOX |
INTERNET_EXPLORER |
NETSCAPE |
OPERA |
SAFARI |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static Internet.UserAgent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Internet.UserAgent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Internet.UserAgent AOL
public static final Internet.UserAgent CHROME
public static final Internet.UserAgent FIREFOX
public static final Internet.UserAgent INTERNET_EXPLORER
public static final Internet.UserAgent NETSCAPE
public static final Internet.UserAgent OPERA
public static final Internet.UserAgent SAFARI
public static Internet.UserAgent[] values()
for (Internet.UserAgent c : Internet.UserAgent.values()) System.out.println(c);
public static Internet.UserAgent 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 toString()
toString
in class Enum<Internet.UserAgent>
Copyright © 2019. All rights reserved.