public enum PolicyTypes extends Enum<PolicyTypes>
Enum Constant and Description |
---|
AFFINITY |
ANTI_AFFINITY |
Modifier and Type | Method and Description |
---|---|
static PolicyTypes |
findByPolicy(String policy) |
String |
getPolicy() |
static boolean |
isGivenPolicyValid(String policyToCheck) |
void |
setPolicy(String policy) |
static PolicyTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PolicyTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PolicyTypes AFFINITY
public static final PolicyTypes ANTI_AFFINITY
public static PolicyTypes[] values()
for (PolicyTypes c : PolicyTypes.values()) System.out.println(c);
public static PolicyTypes 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 PolicyTypes findByPolicy(String policy)
public static boolean isGivenPolicyValid(String policyToCheck)
public String getPolicy()
public void setPolicy(String policy)
Copyright © 2017. All rights reserved.