public enum ProtocolTypes extends Enum<ProtocolTypes>
Enum Constant and Description |
---|
HTTP
Enum value Http.
|
HTTPS
Enum value Https.
|
Modifier and Type | Method and Description |
---|---|
static ProtocolTypes |
fromString(String value)
Parses a serialized value to a ProtocolTypes instance.
|
String |
toString() |
static ProtocolTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolTypes HTTP
public static final ProtocolTypes HTTPS
public static ProtocolTypes[] values()
for (ProtocolTypes c : ProtocolTypes.values()) System.out.println(c);
public static ProtocolTypes 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 static ProtocolTypes fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<ProtocolTypes>
Copyright © 2019. All rights reserved.