public enum TransportPolicy extends Enum<TransportPolicy>
| Enum Constant and Description |
|---|
ANY
Any transport (e.g.
|
SECURE
Only a secure transport (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static TransportPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final TransportPolicy ANY
public static final TransportPolicy SECURE
public static TransportPolicy[] values()
for (TransportPolicy c : TransportPolicy.values())
System.out.println(c);
public static TransportPolicy 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