public static enum Location.Protocol extends Enum<Location.Protocol>
Modifier and Type | Method and Description |
---|---|
static Location.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Location.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Location.Protocol HTTPS
public static final Location.Protocol HTTP
public static Location.Protocol[] values()
for (Location.Protocol c : Location.Protocol.values()) System.out.println(c);
public static Location.Protocol 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 nullCopyright © 2018 Xalys. All rights reserved.