public enum LinkProtocol extends Enum<LinkProtocol>
Enum Constant and Description |
---|
CALL
The value of Link field is a telephone number.
|
MAIL
The value of Link field is an E-mail address.
|
WEB
The value of Link field is an URL.
|
Modifier and Type | Method and Description |
---|---|
static LinkProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LinkProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinkProtocol WEB
public static final LinkProtocol CALL
public static final LinkProtocol MAIL
public static LinkProtocol[] values()
for (LinkProtocol c : LinkProtocol.values()) System.out.println(c);
public static LinkProtocol 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 null