Enum GenderLimitation
- java.lang.Object
-
- java.lang.Enum<GenderLimitation>
-
- org.optaplanner.examples.pas.domain.GenderLimitation
-
- All Implemented Interfaces:
Serializable,Comparable<GenderLimitation>
public enum GenderLimitation extends Enum<GenderLimitation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_GENDERFEMALE_ONLYMALE_ONLYSAME_GENDER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()static GenderLimitationvalueOf(String name)Returns the enum constant of this type with the specified name.static GenderLimitationvalueOfCode(String code)static GenderLimitation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY_GENDER
public static final GenderLimitation ANY_GENDER
-
MALE_ONLY
public static final GenderLimitation MALE_ONLY
-
FEMALE_ONLY
public static final GenderLimitation FEMALE_ONLY
-
SAME_GENDER
public static final GenderLimitation SAME_GENDER
-
-
Method Detail
-
values
public static GenderLimitation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GenderLimitation c : GenderLimitation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenderLimitation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfCode
public static GenderLimitation valueOfCode(String code)
-
getCode
public String getCode()
-
-