public enum ProtocolTypeEnum extends Enum<ProtocolTypeEnum>
| Enum Constant and Description |
|---|
BOTH
Represents both.
|
HOST
Represents host.
|
ROUTER
Represents router.
|
| Modifier and Type | Method and Description |
|---|---|
static ProtocolTypeEnum |
of(int value)
Returns the object of protocolTypeEnum for.
|
static ProtocolTypeEnum |
of(String value)
Returns the object of protocolTypeEnum for.
|
int |
protocolTypeEnum()
Returns the attribute protocolTypeEnum.
|
String |
toString() |
static ProtocolTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolTypeEnum HOST
public static final ProtocolTypeEnum ROUTER
public static final ProtocolTypeEnum BOTH
public static ProtocolTypeEnum[] values()
for (ProtocolTypeEnum c : ProtocolTypeEnum.values()) System.out.println(c);
public static ProtocolTypeEnum 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 ProtocolTypeEnum of(int value)
value - value of protocolTypeEnum forpublic static ProtocolTypeEnum of(String value)
value - value of protocolTypeEnum forpublic int protocolTypeEnum()
public String toString()
toString in class Enum<ProtocolTypeEnum>Copyright © 2018. All rights reserved.