public static enum Server.TRANSMISSION_PROTOCOL extends Enum<Server.TRANSMISSION_PROTOCOL> implements Server.TransmissionProtocol
Modifier and Type | Method and Description |
---|---|
static Server.TRANSMISSION_PROTOCOL |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Server.TRANSMISSION_PROTOCOL[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Server.TRANSMISSION_PROTOCOL TCP
public static final Server.TRANSMISSION_PROTOCOL UDP
public static Server.TRANSMISSION_PROTOCOL[] values()
for (Server.TRANSMISSION_PROTOCOL c : Server.TRANSMISSION_PROTOCOL.values()) System.out.println(c);
public static Server.TRANSMISSION_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 © 2013. All Rights Reserved.